Skip to content

Commit 5dbed50

Browse files
rrevanstonyhutter
authored andcommitted
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
1 parent 3fb0942 commit 5dbed50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/kernel-filemap.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dnl #
44
AC_DEFUN([ZFS_AC_KERNEL_SRC_FILEMAP], [
55
ZFS_LINUX_TEST_SRC([filemap_range_has_page], [
66
#include <linux/fs.h>
7+
#include <linux/pagemap.h>
78
],[
89
struct address_space *mapping = NULL;
910
loff_t lstart = 0;

0 commit comments

Comments
 (0)