2 dnl # Linux 6.0 uses migrate_folio in lieu of migrate_page
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_MIGRATE_FOLIO], [
5 ZFS_LINUX_TEST_SRC([vfs_has_migrate_folio], [
7 #include <linux/migrate.h>
9 static const struct address_space_operations
10 aops __attribute__ ((unused)) = {
11 .migrate_folio = migrate_folio,
16 AC_DEFUN([ZFS_AC_KERNEL_VFS_MIGRATE_FOLIO], [
18 dnl # Linux 6.0 uses migrate_folio in lieu of migrate_page
20 AC_MSG_CHECKING([whether migrate_folio exists])
21 ZFS_LINUX_TEST_RESULT([vfs_has_migrate_folio], [
23 AC_DEFINE(HAVE_VFS_MIGRATE_FOLIO, 1, [migrate_folio exists])