mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
config: remove HAVE_VFS_FILE_OPERATIONS_EXTEND
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:
committed by
Brian Behlendorf
parent
9914684d36
commit
230bc538cb
@@ -83,8 +83,7 @@ zpl_clone_file_range_impl(struct file *src_file, loff_t src_off,
|
||||
return ((ssize_t)len_o);
|
||||
}
|
||||
|
||||
#if defined(HAVE_VFS_COPY_FILE_RANGE) || \
|
||||
defined(HAVE_VFS_FILE_OPERATIONS_EXTEND)
|
||||
#if defined(HAVE_VFS_COPY_FILE_RANGE)
|
||||
/*
|
||||
* Entry point for copy_file_range(). Copy len bytes from src_off in src_file
|
||||
* to dst_off in dst_file. We are permitted to do this however we like, so we
|
||||
@@ -134,7 +133,7 @@ zpl_copy_file_range(struct file *src_file, loff_t src_off,
|
||||
|
||||
return (ret);
|
||||
}
|
||||
#endif /* HAVE_VFS_COPY_FILE_RANGE || HAVE_VFS_FILE_OPERATIONS_EXTEND */
|
||||
#endif /* HAVE_VFS_COPY_FILE_RANGE */
|
||||
|
||||
#ifdef HAVE_VFS_REMAP_FILE_RANGE
|
||||
/*
|
||||
@@ -179,8 +178,7 @@ zpl_remap_file_range(struct file *src_file, loff_t src_off,
|
||||
}
|
||||
#endif /* HAVE_VFS_REMAP_FILE_RANGE */
|
||||
|
||||
#if defined(HAVE_VFS_CLONE_FILE_RANGE) || \
|
||||
defined(HAVE_VFS_FILE_OPERATIONS_EXTEND)
|
||||
#if defined(HAVE_VFS_CLONE_FILE_RANGE)
|
||||
/*
|
||||
* Entry point for FICLONE and FICLONERANGE, before Linux 4.20.
|
||||
*/
|
||||
@@ -201,7 +199,7 @@ zpl_clone_file_range(struct file *src_file, loff_t src_off,
|
||||
|
||||
return (ret);
|
||||
}
|
||||
#endif /* HAVE_VFS_CLONE_FILE_RANGE || HAVE_VFS_FILE_OPERATIONS_EXTEND */
|
||||
#endif /* HAVE_VFS_CLONE_FILE_RANGE */
|
||||
|
||||
#ifdef HAVE_VFS_DEDUPE_FILE_RANGE
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user