diff options
author | Brian Behlendorf <[email protected]> | 2023-02-14 11:04:34 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-02-14 11:04:34 -0800 |
commit | 3fc92adc409a36de229c78c7ca3d4689e9386bd3 (patch) | |
tree | 7a2ec1de6ac61e712e8b7676ae5ce77aa6a79de2 /config/kernel.m4 | |
parent | ab672133a9bde75d20afd59d8db1405c7300a557 (diff) |
Linux: use filemap_range_has_page()
As of the 4.13 kernel filemap_range_has_page() can be used to
check if there is a page mapped in a given file range. When
available this interface should be used which eliminates the
need for the zp->z_is_mapped boolean.
Reviewed-by: Brian Atkinson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #14493
Diffstat (limited to 'config/kernel.m4')
-rw-r--r-- | config/kernel.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4 index 353988e9c..121d73ef6 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -150,6 +150,7 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [ ZFS_AC_KERNEL_SRC_USER_NS_COMMON_INUM ZFS_AC_KERNEL_SRC_IDMAP_MNT_API ZFS_AC_KERNEL_SRC_IATTR_VFSID + ZFS_AC_KERNEL_SRC_FILEMAP AC_MSG_CHECKING([for available kernel interfaces]) ZFS_LINUX_TEST_COMPILE_ALL([kabi]) @@ -273,6 +274,7 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [ ZFS_AC_KERNEL_USER_NS_COMMON_INUM ZFS_AC_KERNEL_IDMAP_MNT_API ZFS_AC_KERNEL_IATTR_VFSID + ZFS_AC_KERNEL_FILEMAP ]) dnl # |