mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
config: remove HAVE_RENAME2_OPERATIONS_WRAPPER
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user