aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRobert Evans <[email protected]>2024-03-29 20:11:52 -0400
committerTony Hutter <[email protected]>2024-04-22 09:23:23 -0700
commit5dbed504295ef4c8dbde54ef712812cd485a81e6 (patch)
tree5c6c3bcb74b736667dbe0c0fa1cced872c86d8b9 /config
parent3fb0942cc5fb216ac733da94930e11a64e589d38 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Rob Norris <[email protected]> Signed-off-by: Robert Evans <[email protected]> Closes #16034
Diffstat (limited to 'config')
-rw-r--r--config/kernel-filemap.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/config/kernel-filemap.m4 b/config/kernel-filemap.m4
index 745928168..0b7da828d 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 <linux/fs.h>
+ #include <linux/pagemap.h>
],[
struct address_space *mapping = NULL;
loff_t lstart = 0;