erofs: code cleanup by removing ifdef macro surrounding
authorChengguang Xu <cgxu519@mykernel.net>
Tue, 26 May 2020 09:03:43 +0000 (17:03 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Wed, 27 May 2020 08:46:20 +0000 (16:46 +0800)
commite7cda1ee94f464e02e356319aec7d83ccba8cab4
tree44dbecf8f4204bcf06c34496090357b5503f557f
parent9cb1fd0efd195590b828b9b865421ad345a4a145
erofs: code cleanup by removing ifdef macro surrounding

Define erofs_listxattr and erofs_xattr_handlers to NULL when
CONFIG_EROFS_FS_XATTR is not enabled, then we can remove many
ugly ifdef macros in the code.

Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20200526090343.22794-1-cgxu519@mykernel.net
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/inode.c
fs/erofs/namei.c
fs/erofs/super.c
fs/erofs/xattr.h