From 5dbed504295ef4c8dbde54ef712812cd485a81e6 Mon Sep 17 00:00:00 2001 From: Robert Evans Date: Fri, 29 Mar 2024 20:11:52 -0400 Subject: [PATCH] Linux 5.18+ compat: Detect filemap_range_has_page In v5.18 `filemap_range_has_page` moved to `pagemap.h` `pagemap.h` has been around since 3.10 so just include both Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Reviewed-by: Rob Norris Signed-off-by: Robert Evans Closes #16034 --- config/kernel-filemap.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/config/kernel-filemap.m4 b/config/kernel-filemap.m4 index 745928168f..0b7da828d2 100644 --- a/config/kernel-filemap.m4 +++ b/config/kernel-filemap.m4 @@ -4,6 +4,7 @@ dnl # AC_DEFUN([ZFS_AC_KERNEL_SRC_FILEMAP], [ ZFS_LINUX_TEST_SRC([filemap_range_has_page], [ #include + #include ],[ struct address_space *mapping = NULL; loff_t lstart = 0;