summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/file.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@mykernel.net>2020-05-26 17:07:12 +0800
committerRichard Weinberger <richard@nod.at>2020-12-13 21:51:59 +0100
commit2976c19c95a4749ba11db174ecad676ff16fd4c9 (patch)
tree85afa5569a6610bc10bcb5a8733fc72808478cf8 /fs/ubifs/file.c
parent8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09 (diff)
downloadlinux-2976c19c95a4749ba11db174ecad676ff16fd4c9.tar.gz
linux-2976c19c95a4749ba11db174ecad676ff16fd4c9.tar.bz2
linux-2976c19c95a4749ba11db174ecad676ff16fd4c9.zip
ubifs: Code cleanup by removing ifdef macro surrounding
Define ubifs_listxattr and ubifs_xattr_handlers to NULL when CONFIG_UBIFS_FS_XATTR is not enabled, then we can remove many ugly ifdef macros in the code. Signed-off-by: Chengguang Xu <cgxu519@mykernel.net> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/file.c')
-rw-r--r--fs/ubifs/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c
index ed58767143ab..cacb970bcf48 100644
--- a/fs/ubifs/file.c
+++ b/fs/ubifs/file.c
@@ -1645,9 +1645,7 @@ const struct address_space_operations ubifs_file_address_operations = {
const struct inode_operations ubifs_file_inode_operations = {
.setattr = ubifs_setattr,
.getattr = ubifs_getattr,
-#ifdef CONFIG_UBIFS_FS_XATTR
.listxattr = ubifs_listxattr,
-#endif
.update_time = ubifs_update_time,
};
@@ -1655,9 +1653,7 @@ const struct inode_operations ubifs_symlink_inode_operations = {
.get_link = ubifs_get_link,
.setattr = ubifs_setattr,
.getattr = ubifs_getattr,
-#ifdef CONFIG_UBIFS_FS_XATTR
.listxattr = ubifs_listxattr,
-#endif
.update_time = ubifs_update_time,
};