ZTS: Add additional exceptions
[zfs.git] / config / kernel-dentry-operations.m4
blobaa5a9f2aff3927626bef3a8121716e6251dcc1ad
1 dnl #
2 dnl # 2.6.28 API change
3 dnl # Added d_obtain_alias() helper function.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS], [
6         ZFS_LINUX_TEST_SRC([d_obtain_alias], [
7                 #include <linux/dcache.h>
8         ], [
9                 d_obtain_alias(NULL);
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_D_OBTAIN_ALIAS], [
14         AC_MSG_CHECKING([whether d_obtain_alias() is available])
15         ZFS_LINUX_TEST_RESULT_SYMBOL([d_obtain_alias],
16             [d_obtain_alias], [fs/dcache.c], [
17                 AC_MSG_RESULT(yes)
18         ], [
19                 ZFS_LINUX_TEST_ERROR([d_obtain_alias()])
20         ])
23 dnl #
24 dnl # 2.6.38 API change
25 dnl # Added d_set_d_op() helper function.
26 dnl #
27 AC_DEFUN([ZFS_AC_KERNEL_SRC_D_SET_D_OP], [
28         ZFS_LINUX_TEST_SRC([d_set_d_op], [
29                 #include <linux/dcache.h>
30         ], [
31                 d_set_d_op(NULL, NULL);
32         ])
35 AC_DEFUN([ZFS_AC_KERNEL_D_SET_D_OP], [
36         AC_MSG_CHECKING([whether d_set_d_op() is available])
37         ZFS_LINUX_TEST_RESULT_SYMBOL([d_set_d_op],
38             [d_set_d_op], [fs/dcache.c], [
39                 AC_MSG_RESULT(yes)
40         ], [
41                 ZFS_LINUX_TEST_ERROR([d_set_d_op])
42         ])
45 AC_DEFUN([ZFS_AC_KERNEL_SRC_DENTRY], [
46         ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS
47         ZFS_AC_KERNEL_SRC_D_SET_D_OP
48         ZFS_AC_KERNEL_SRC_S_D_OP
51 AC_DEFUN([ZFS_AC_KERNEL_DENTRY], [
52         ZFS_AC_KERNEL_D_OBTAIN_ALIAS
53         ZFS_AC_KERNEL_D_SET_D_OP
54         ZFS_AC_KERNEL_S_D_OP