2 dnl # filemap_range_has_page was not available till 4.13
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_FILEMAP], [
5 ZFS_LINUX_TEST_SRC([filemap_range_has_page], [
8 struct address_space *mapping = NULL;
11 bool ret __attribute__ ((unused));
13 ret = filemap_range_has_page(mapping, lstart, lend);
17 AC_DEFUN([ZFS_AC_KERNEL_FILEMAP], [
18 AC_MSG_CHECKING([whether filemap_range_has_page() is available])
19 ZFS_LINUX_TEST_RESULT([filemap_range_has_page], [
21 AC_DEFINE(HAVE_FILEMAP_RANGE_HAS_PAGE, 1,
22 [filemap_range_has_page() is available])