2 dnl # Linux 5.18 uses invalidate_folio in lieu of invalidate_page
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_INVALIDATE_FOLIO], [
5 ZFS_LINUX_TEST_SRC([vfs_has_invalidate_folio], [
9 test_invalidate_folio(struct folio *folio, size_t offset,
11 (void) folio; (void) offset; (void) len;
15 static const struct address_space_operations
16 aops __attribute__ ((unused)) = {
17 .invalidate_folio = test_invalidate_folio,
22 AC_DEFUN([ZFS_AC_KERNEL_VFS_INVALIDATE_FOLIO], [
24 dnl # Linux 5.18 uses invalidate_folio in lieu of invalidate_page
26 AC_MSG_CHECKING([whether invalidate_folio exists])
27 ZFS_LINUX_TEST_RESULT([vfs_has_invalidate_folio], [
29 AC_DEFINE(HAVE_VFS_INVALIDATE_FOLIO, 1, [invalidate_folio exists])