mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-29 04:19:35 +03:00
220bb7341e
Before 5.4 we have to do a little math.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Closes #15533
Closes #15588
(cherry picked from commit df04efe321
)
18 lines
405 B
Plaintext
18 lines
405 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)
|
|
])
|
|
])
|