2 dnl # Linux 5.18 removes address_space_operations ->readpages in favour of
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_READPAGES], [
6 ZFS_LINUX_TEST_SRC([vfs_has_readpages], [
9 static const struct address_space_operations
10 aops __attribute__ ((unused)) = {
16 AC_DEFUN([ZFS_AC_KERNEL_VFS_READPAGES], [
17 AC_MSG_CHECKING([address_space_operations->readpages exists])
18 ZFS_LINUX_TEST_RESULT([vfs_has_readpages], [
20 AC_DEFINE(HAVE_VFS_READPAGES, 1,
21 [address_space_operations->readpages exists])