mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-11 12:56:21 +03:00
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #18077
28 lines
690 B
Plaintext
28 lines
690 B
Plaintext
dnl # SPDX-License-Identifier: CDDL-1.0
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_RECLAIMED], [
|
|
dnl #
|
|
dnl # 6.4 API change
|
|
dnl # The reclaimed_slab of struct reclaim_state
|
|
dnl # is renamed to reclaimed
|
|
dnl #
|
|
ZFS_LINUX_TEST_SRC([reclaim_state_reclaimed], [
|
|
#include <linux/swap.h>
|
|
static const struct reclaim_state
|
|
rs __attribute__ ((unused)) = {
|
|
.reclaimed = 100,
|
|
};
|
|
],[])
|
|
])
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_RECLAIMED], [
|
|
AC_MSG_CHECKING([whether struct reclaim_state has reclaimed field])
|
|
ZFS_LINUX_TEST_RESULT([reclaim_state_reclaimed], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_RECLAIM_STATE_RECLAIMED, 1,
|
|
[struct reclaim_state has reclaimed])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|
|
|