1dnl # 2dnl # Linux 6.16 removes address_space_operations ->writepage 3dnl # 4AC_DEFUN([ZFS_AC_KERNEL_SRC_VFS_WRITEPAGE], [ 5 ZFS_LINUX_TEST_SRC([vfs_has_writepage], [ 6 #include <linux/fs.h> 7 8 static const struct address_space_operations 9 aops __attribute__ ((unused)) = { 10 .writepage = NULL, 11 }; 12 ],[]) 13]) 14 15AC_DEFUN([ZFS_AC_KERNEL_VFS_WRITEPAGE], [ 16 AC_MSG_CHECKING([whether aops->writepage exists]) 17 ZFS_LINUX_TEST_RESULT([vfs_has_writepage], [ 18 AC_MSG_RESULT([yes]) 19 AC_DEFINE(HAVE_VFS_WRITEPAGE, 1, 20 [address_space_operations->writepage exists]) 21 ],[ 22 AC_MSG_RESULT([no]) 23 ]) 24]) 25