diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2020-05-22 06:40:35 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-05-22 15:11:00 +0200 |
commit | 91a087153d9db2aaabd4fddcb3fa12fa10168136 (patch) | |
tree | 020095ca5ffeea66b5db312ca3d7c367c5a05c90 /fs/ext2/xattr.h | |
parent | ext2: Fix i_op setting for special inode (diff) | |
download | linux-91a087153d9db2aaabd4fddcb3fa12fa10168136.tar.xz linux-91a087153d9db2aaabd4fddcb3fa12fa10168136.zip |
ext2: code cleanup by removing ifdef macro surrounding
Define ext2_listxattr to NULL when CONFIG_EROFS_FS_XATTR
is not enabled, then we can remove many ugly ifdef macros
in the code.
Link: https://lore.kernel.org/r/20200522044035.24190-2-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/xattr.h')
-rw-r--r-- | fs/ext2/xattr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext2/xattr.h b/fs/ext2/xattr.h index 16272e6ddcf4..7925f596e8e2 100644 --- a/fs/ext2/xattr.h +++ b/fs/ext2/xattr.h @@ -100,6 +100,7 @@ static inline void ext2_xattr_destroy_cache(struct mb_cache *cache) } #define ext2_xattr_handlers NULL +#define ext2_listxattr NULL # endif /* CONFIG_EXT2_FS_XATTR */ |