mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
3abffc8781
Since the change to folios it has just been a wrapper anyway. Linux has removed their wrapper, so we add one. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #16400
37 lines
869 B
Plaintext
37 lines
869 B
Plaintext
AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_SIZE], [
|
|
ZFS_LINUX_TEST_SRC([page_size], [
|
|
#include <linux/mm.h>
|
|
],[
|
|
unsigned long s;
|
|
s = page_size(NULL);
|
|
])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_SIZE], [
|
|
AC_MSG_CHECKING([whether page_size() is available])
|
|
ZFS_LINUX_TEST_RESULT([page_size], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_MM_PAGE_SIZE, 1, [page_size() is available])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_MM_PAGE_MAPPING], [
|
|
ZFS_LINUX_TEST_SRC([page_mapping], [
|
|
#include <linux/pagemap.h>
|
|
],[
|
|
struct page *p = NULL;
|
|
struct address_space *m = page_mapping(NULL);
|
|
])
|
|
])
|
|
AC_DEFUN([ZFS_AC_KERNEL_MM_PAGE_MAPPING], [
|
|
AC_MSG_CHECKING([whether page_mapping() is available])
|
|
ZFS_LINUX_TEST_RESULT([page_mapping], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_MM_PAGE_MAPPING, 1, [page_mapping() is available])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|