forked from Minki/linux
This pull request contains the following fixes for UBIFS:
- Build errors wrt. xattrs - Mismerge which lead to a wrong Kconfig ifdef - Missing endianness conversion -----BEGIN PGP SIGNATURE----- iQJKBAABCAA0FiEEdgfidid8lnn52cLTZvlZhesYu8EFAlzhsxcWHHJpY2hhcmRA c2lnbWEtc3Rhci5hdAAKCRBm+VmF6xi7wbuJEACe3ko0SOhNd0cP9jmHKguIuE10 FceRVwzhcpJVAJvmoMcBlI36N9NhA+n/qSV6s03a58sX1ECFfeydAyT2pKPXMWiI h4gtNkAedPvLMeTRmP6gUFtvtMCKYWVeeqNZZoVjS/caIsb/v3fQZORflQ2uybxv +zdrZlrAKl9pP4j2C20mQD9z71jlTEiTys9zppVGcpeK1ByXRpDOTUcK9evVntyy k72VkWAnscYupfHehrBCLU04UZ4rI3zs9sk/Vyl6sa3ZiuwFDsJUjQc+Tq2D7ZKL XtenVr+qQ/4BMPQGFyXUk/YQCgqlTkdRLxIhMSyn2M2qOsVad57xKxTdB1HB2USp pfO4Ki0EsYcPuz+okMVTDfzPARUBA1RFJT0bOLqpVGP15ou52EOsqTwenxsyZCty AXPXXMtZO9qO00GdD0AcolgiMJGSQYsivkeQU7qgP7/jYDdKZ1NIVLtUUUBXm36g RvdfYJ+gTlaKWVTIimG9BouXnkxCDFmBcBJBXCfWSZXUD7dtlDOImgMGNmBiv+07 l7mpTarJv2TB01AHaz1obv4iS5+5py5EM0HDPAOC2htslc1AsZnnrRQRN/Pohkvy 36JSxxfiKZTZn0s9Syqg/i/cw90wuu2E8dWqJGDtVQD77U5rMaEuNxoqVqFd7ozR VV2Ry7SjX6Q0NqUnTQ== =0wS1 -----END PGP SIGNATURE----- Merge tag 'upstream-5.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs Pull UBIFS fixes from Richard Weinberger: - build errors wrt xattrs - mismerge which lead to a wrong Kconfig ifdef - missing endianness conversion * tag 'upstream-5.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: ubifs: Convert xattr inum to host order ubifs: Use correct config name for encryption ubifs: Fix build error without CONFIG_UBIFS_FS_XATTR
This commit is contained in:
commit
2e2c122001
@ -748,7 +748,7 @@ int ubifs_read_superblock(struct ubifs_info *c)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IS_ENABLED(CONFIG_UBIFS_FS_ENCRYPTION) && c->encrypted) {
|
if (!IS_ENABLED(CONFIG_FS_ENCRYPTION) && c->encrypted) {
|
||||||
ubifs_err(c, "file system contains encrypted files but UBIFS"
|
ubifs_err(c, "file system contains encrypted files but UBIFS"
|
||||||
" was built without crypto support.");
|
" was built without crypto support.");
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
@ -941,7 +941,7 @@ int ubifs_enable_encryption(struct ubifs_info *c)
|
|||||||
int err;
|
int err;
|
||||||
struct ubifs_sb_node *sup = c->sup_node;
|
struct ubifs_sb_node *sup = c->sup_node;
|
||||||
|
|
||||||
if (!IS_ENABLED(CONFIG_UBIFS_FS_ENCRYPTION))
|
if (!IS_ENABLED(CONFIG_FS_ENCRYPTION))
|
||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
|
|
||||||
if (c->encrypted)
|
if (c->encrypted)
|
||||||
|
@ -2015,13 +2015,17 @@ int ubifs_xattr_set(struct inode *host, const char *name, const void *value,
|
|||||||
size_t size, int flags, bool check_lock);
|
size_t size, int flags, bool check_lock);
|
||||||
ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf,
|
ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf,
|
||||||
size_t size);
|
size_t size);
|
||||||
int ubifs_purge_xattrs(struct inode *host);
|
|
||||||
|
|
||||||
#ifdef CONFIG_UBIFS_FS_XATTR
|
#ifdef CONFIG_UBIFS_FS_XATTR
|
||||||
void ubifs_evict_xattr_inode(struct ubifs_info *c, ino_t xattr_inum);
|
void ubifs_evict_xattr_inode(struct ubifs_info *c, ino_t xattr_inum);
|
||||||
|
int ubifs_purge_xattrs(struct inode *host);
|
||||||
#else
|
#else
|
||||||
static inline void ubifs_evict_xattr_inode(struct ubifs_info *c,
|
static inline void ubifs_evict_xattr_inode(struct ubifs_info *c,
|
||||||
ino_t xattr_inum) { }
|
ino_t xattr_inum) { }
|
||||||
|
static inline int ubifs_purge_xattrs(struct inode *host)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_UBIFS_FS_SECURITY
|
#ifdef CONFIG_UBIFS_FS_SECURITY
|
||||||
|
@ -527,7 +527,7 @@ int ubifs_purge_xattrs(struct inode *host)
|
|||||||
fname_name(&nm) = xent->name;
|
fname_name(&nm) = xent->name;
|
||||||
fname_len(&nm) = le16_to_cpu(xent->nlen);
|
fname_len(&nm) = le16_to_cpu(xent->nlen);
|
||||||
|
|
||||||
xino = ubifs_iget(c->vfs_sb, xent->inum);
|
xino = ubifs_iget(c->vfs_sb, le64_to_cpu(xent->inum));
|
||||||
if (IS_ERR(xino)) {
|
if (IS_ERR(xino)) {
|
||||||
err = PTR_ERR(xino);
|
err = PTR_ERR(xino);
|
||||||
ubifs_err(c, "dead directory entry '%s', error %d",
|
ubifs_err(c, "dead directory entry '%s', error %d",
|
||||||
|
Loading…
Reference in New Issue
Block a user