diff options
author | Stefan Agner <stefan@agner.ch> | 2018-07-31 15:13:20 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2018-08-15 00:25:14 +0200 |
commit | 7e5471ce6dba5f28a3c7afdfe168655d236f677b (patch) | |
tree | d98f6ecb5637c38eda5f6a961cc15d9d780793b4 /fs/ubifs/super.c | |
parent | 1bf0572fe27030a0e82fc60f8323a2114c2b69d3 (diff) | |
download | lwn-7e5471ce6dba5f28a3c7afdfe168655d236f677b.tar.gz lwn-7e5471ce6dba5f28a3c7afdfe168655d236f677b.zip |
ubifs: introduce Kconfig symbol for xattr support
Allow to disable extended attribute support.
This aids in reliability testing, especially since some xattr
related bugs have surfaced.
Also an embedded system might not need it, so this allows for a
slightly smaller kernel (about 4KiB).
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index c5466c70d620..564a131afc56 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -2053,7 +2053,9 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent) if (c->max_inode_sz > MAX_LFS_FILESIZE) sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE; sb->s_op = &ubifs_super_operations; +#ifdef CONFIG_UBIFS_FS_XATTR sb->s_xattr = ubifs_xattr_handlers; +#endif #ifdef CONFIG_UBIFS_FS_ENCRYPTION sb->s_cop = &ubifs_crypt_operations; #endif |