1dnl # 2dnl # Linux 6.0 gets rid of address_space_operations.migratepage 3dnl # 4AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_MIGRATEPAGE], [ 5 ZFS_LINUX_TEST_SRC([vfs_has_migratepage], [ 6 #include <linux/fs.h> 7 #include <linux/migrate.h> 8 9 static const struct address_space_operations 10 aops __attribute__ ((unused)) = { 11 .migratepage = migrate_page, 12 }; 13 ],[]) 14]) 15 16AC_DEFUN([ZFS_AC_KERNEL_VFS_MIGRATEPAGE], [ 17 dnl # 18 dnl # Linux 6.0 gets rid of address_space_operations.migratepage 19 dnl # 20 AC_MSG_CHECKING([whether migratepage exists]) 21 ZFS_LINUX_TEST_RESULT([vfs_has_migratepage], [ 22 AC_MSG_RESULT([yes]) 23 AC_DEFINE(HAVE_VFS_MIGRATEPAGE, 1, [migratepage exists]) 24 ],[ 25 AC_MSG_RESULT([no]) 26 ]) 27]) 28