aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/zfs
diff options
context:
space:
mode:
Diffstat (limited to 'module/os/linux/zfs')
-rw-r--r--module/os/linux/zfs/zfs_znode.c5
-rw-r--r--module/os/linux/zfs/zpl_inode.c9
2 files changed, 0 insertions, 14 deletions
diff --git a/module/os/linux/zfs/zfs_znode.c b/module/os/linux/zfs/zfs_znode.c
index bc01faed1..7f031d16f 100644
--- a/module/os/linux/zfs/zfs_znode.c
+++ b/module/os/linux/zfs/zfs_znode.c
@@ -420,12 +420,7 @@ zfs_inode_set_ops(zfsvfs_t *zfsvfs, struct inode *ip)
break;
case S_IFDIR:
-#ifdef HAVE_RENAME2_OPERATIONS_WRAPPER
- ip->i_flags |= S_IOPS_WRAPPER;
- ip->i_op = &zpl_dir_inode_operations.ops;
-#else
ip->i_op = &zpl_dir_inode_operations;
-#endif
ip->i_fop = &zpl_dir_file_operations;
ITOZ(ip)->z_zn_prefetch = B_TRUE;
break;
diff --git a/module/os/linux/zfs/zpl_inode.c b/module/os/linux/zfs/zpl_inode.c
index dfaaa6f1e..863e439f4 100644
--- a/module/os/linux/zfs/zpl_inode.c
+++ b/module/os/linux/zfs/zpl_inode.c
@@ -792,12 +792,7 @@ const struct inode_operations zpl_inode_operations = {
#endif /* CONFIG_FS_POSIX_ACL */
};
-#ifdef HAVE_RENAME2_OPERATIONS_WRAPPER
-const struct inode_operations_wrapper zpl_dir_inode_operations = {
- .ops = {
-#else
const struct inode_operations zpl_dir_inode_operations = {
-#endif
.create = zpl_create,
.lookup = zpl_lookup,
.link = zpl_link,
@@ -834,10 +829,6 @@ const struct inode_operations zpl_dir_inode_operations = {
.get_acl = zpl_get_acl,
#endif /* HAVE_GET_INODE_ACL */
#endif /* CONFIG_FS_POSIX_ACL */
-#ifdef HAVE_RENAME2_OPERATIONS_WRAPPER
- },
- .rename2 = zpl_rename2,
-#endif
};
const struct inode_operations zpl_symlink_inode_operations = {