diff options
author | Robert Evans <[email protected]> | 2024-03-29 20:11:52 -0400 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2024-04-22 09:23:23 -0700 |
commit | 5dbed504295ef4c8dbde54ef712812cd485a81e6 (patch) | |
tree | 5c6c3bcb74b736667dbe0c0fa1cced872c86d8b9 /config | |
parent | 3fb0942cc5fb216ac733da94930e11a64e589d38 (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.m4 | 1 |
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; |