Allow dsl_deadlist_open() return errors
[zfs.git] / config / kernel-kmap-local-page.m4
blob1990914d493dea2a374626582bdb1484cd11b278
1 dnl #
2 dnl # 5.11 API change
3 dnl # kmap_atomic() was deprecated in favor of kmap_local_page()
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_KMAP_LOCAL_PAGE], [
6         ZFS_LINUX_TEST_SRC([kmap_local_page], [
7                 #include <linux/highmem.h>
8         ],[
9                 struct page page;
10                 kmap_local_page(&page);
11         ])
14 AC_DEFUN([ZFS_AC_KERNEL_KMAP_LOCAL_PAGE], [
15         AC_MSG_CHECKING([whether kmap_local_page exists])
16         ZFS_LINUX_TEST_RESULT([kmap_local_page], [
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_KMAP_LOCAL_PAGE, 1,
19                     [kernel has kmap_local_page])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])