Fix some nits in zfs_getpages()
[zfs.git] / config / kernel-mm-pagemap.m4
blobdef6f5f4b3aa6b70f176c5425acd69048d60599d
1 AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_SIZE], [
2         ZFS_LINUX_TEST_SRC([page_size], [
3                 #include <linux/mm.h>
4         ],[
5                 unsigned long s;
6                 s = page_size(NULL);
7         ])
8 ])
9 AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_SIZE], [
10         AC_MSG_CHECKING([whether page_size() is available])
11         ZFS_LINUX_TEST_RESULT([page_size], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_MM_PAGE_SIZE, 1, [page_size() is available])
14         ],[
15                 AC_MSG_RESULT(no)
16         ])
20 AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_MAPPING], [
21         ZFS_LINUX_TEST_SRC([page_mapping], [
22                 #include <linux/pagemap.h>
23         ],[
24                 struct address_space *m;
25                 m = page_mapping(NULL);
26         ])
28 AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_MAPPING], [
29         AC_MSG_CHECKING([whether page_mapping() is available])
30         ZFS_LINUX_TEST_RESULT([page_mapping], [
31                 AC_MSG_RESULT(yes)
32                 AC_DEFINE(HAVE_MM_PAGE_MAPPING, 1, [page_mapping() is available])
33         ],[
34                 AC_MSG_RESULT(no)
35         ])