Skip to content

Commit

Permalink
Linux 5.18+ compat: Detect filemap_range_has_page
Browse files Browse the repository at this point in the history
In v5.18 `filemap_range_has_page` moved to `pagemap.h`

`pagemap.h` has been around since 3.10 so just include both

Signed-off-by: Robert Evans <[email protected]>
  • Loading branch information
rrevans committed Mar 28, 2024
1 parent e39e20b commit 5f4062d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/kernel-filemap.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f4062d

Please sign in to comment.