aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/erofs/namei.c
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2019-01-14 19:40:24 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-15 15:51:57 +0100
commit609398266c5426db2622dc43db2c95855d3b8e6c (patch)
tree82c0d872740fdc086bbfd76baf5c2eeebc42257d /drivers/staging/erofs/namei.c
parent7077fffcb0b0b65dc75e341306aeef4d0e7f2ec6 (diff)
staging: erofs: remove unneeded inode_operations
Currently, EROFS uses generic iops when xattr is off, it seems unnecessary and a lot of extra code is there. Let's follow what other filesystems do instead. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/erofs/namei.c')
-rw-r--r--drivers/staging/erofs/namei.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/erofs/namei.c b/drivers/staging/erofs/namei.c
index 5596c52e246d..7fed1f996ab0 100644
--- a/drivers/staging/erofs/namei.c
+++ b/drivers/staging/erofs/namei.c
@@ -235,10 +235,6 @@ static struct dentry *erofs_lookup(struct inode *dir,
const struct inode_operations erofs_dir_iops = {
.lookup = erofs_lookup,
-};
-
-const struct inode_operations erofs_dir_xattr_iops = {
- .lookup = erofs_lookup,
#ifdef CONFIG_EROFS_FS_XATTR
.listxattr = erofs_listxattr,
#endif