forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux 6.4 compat: reclaimed_slab renamed to reclaimed
Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Youzhong Yang <yyang@mathworks.com> Closes openzfs#14891
- Loading branch information
1 parent
0693b51
commit 80c4e2c
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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) | ||
]) | ||
]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters