forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use kmap_local_page instead of kmap_atomic
Changed zfs_k(un)map_atomic_temp to zfs_k(un)map_temp Signed-off-by: Jason Lee <jasonlee@lanl.gov>
- Loading branch information
1 parent
fd51786
commit dfb9562
Showing
5 changed files
with
41 additions
and
10 deletions.
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,23 @@ | ||
dnl # | ||
dnl # 5.11 API change | ||
dnl # kmap_atomic() was deprecated in favor of kmap_local_page() | ||
dnl # | ||
AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_LOCAL_PAGE], [ | ||
ZFS_LINUX_TEST_SRC([kmap_local_page], [ | ||
#include <linux/highmem.h> | ||
],[ | ||
struct page page; | ||
kmap_local_page(&page); | ||
]) | ||
]) | ||
|
||
AC_DEFUN([ZFS_AC_KERNEL_KMAP_LOCAL_PAGE], [ | ||
AC_MSG_CHECKING([whether kmap_local_page exists]) | ||
ZFS_LINUX_TEST_RESULT([kmap_local_page], [ | ||
AC_MSG_RESULT(yes) | ||
AC_DEFINE(HAVE_KMAP_LOCAL_PAGE, 1, | ||
[kernel has kmap_local_page]) | ||
],[ | ||
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
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