mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	config: remove HAVE_FILE_AIO_FSYNC
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:
		
							parent
							
								
									31952dc1c1
								
							
						
					
					
						commit
						0155b9d831
					
				@ -1,23 +0,0 @@
 | 
			
		||||
dnl #
 | 
			
		||||
dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field
 | 
			
		||||
dnl #
 | 
			
		||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_AIO_FSYNC], [
 | 
			
		||||
	ZFS_LINUX_TEST_SRC([aio_fsync], [
 | 
			
		||||
		#include <linux/fs.h>
 | 
			
		||||
 | 
			
		||||
		static const struct file_operations
 | 
			
		||||
		    fops __attribute__ ((unused)) = {
 | 
			
		||||
			.aio_fsync = NULL,
 | 
			
		||||
		};
 | 
			
		||||
	],[])
 | 
			
		||||
])
 | 
			
		||||
 | 
			
		||||
AC_DEFUN([ZFS_AC_KERNEL_AIO_FSYNC], [
 | 
			
		||||
	AC_MSG_CHECKING([whether fops->aio_fsync() exists])
 | 
			
		||||
	ZFS_LINUX_TEST_RESULT([aio_fsync], [
 | 
			
		||||
		AC_MSG_RESULT(yes)
 | 
			
		||||
		AC_DEFINE(HAVE_FILE_AIO_FSYNC, 1, [fops->aio_fsync() exists])
 | 
			
		||||
	],[
 | 
			
		||||
		AC_MSG_RESULT(no)
 | 
			
		||||
	])
 | 
			
		||||
])
 | 
			
		||||
@ -70,7 +70,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_INODE_GETATTR
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_INODE_SET_IVERSION
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_SHOW_OPTIONS
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_AIO_FSYNC
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_SHRINKER
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_MKDIR
 | 
			
		||||
	ZFS_AC_KERNEL_SRC_LOOKUP_FLAGS
 | 
			
		||||
@ -195,7 +194,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
 | 
			
		||||
	ZFS_AC_KERNEL_INODE_GETATTR
 | 
			
		||||
	ZFS_AC_KERNEL_INODE_SET_IVERSION
 | 
			
		||||
	ZFS_AC_KERNEL_SHOW_OPTIONS
 | 
			
		||||
	ZFS_AC_KERNEL_AIO_FSYNC
 | 
			
		||||
	ZFS_AC_KERNEL_SHRINKER
 | 
			
		||||
	ZFS_AC_KERNEL_MKDIR
 | 
			
		||||
	ZFS_AC_KERNEL_LOOKUP_FLAGS
 | 
			
		||||
 | 
			
		||||
@ -173,14 +173,6 @@ zpl_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
 | 
			
		||||
	return (error);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_FILE_AIO_FSYNC
 | 
			
		||||
static int
 | 
			
		||||
zpl_aio_fsync(struct kiocb *kiocb, int datasync)
 | 
			
		||||
{
 | 
			
		||||
	return (zpl_fsync(kiocb->ki_filp, kiocb->ki_pos, -1, datasync));
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static inline int
 | 
			
		||||
zfs_io_flags(struct kiocb *kiocb)
 | 
			
		||||
{
 | 
			
		||||
@ -1127,9 +1119,6 @@ const struct file_operations zpl_file_operations = {
 | 
			
		||||
#endif
 | 
			
		||||
	.mmap		= zpl_mmap,
 | 
			
		||||
	.fsync		= zpl_fsync,
 | 
			
		||||
#ifdef HAVE_FILE_AIO_FSYNC
 | 
			
		||||
	.aio_fsync	= zpl_aio_fsync,
 | 
			
		||||
#endif
 | 
			
		||||
	.fallocate	= zpl_fallocate,
 | 
			
		||||
	.copy_file_range	= zpl_copy_file_range,
 | 
			
		||||
#ifdef HAVE_VFS_CLONE_FILE_RANGE
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user