1AC_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]) 9AC_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 ]) 17]) 18 19 20AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_MAPPING], [ 21 ZFS_LINUX_TEST_SRC([page_mapping], [ 22 #include <linux/pagemap.h> 23 ],[ 24 struct page *p = NULL; 25 struct address_space *m = page_mapping(NULL); 26 ]) 27]) 28AC_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 ]) 36]) 37