2 dnl # 2.6.28 API change
3 dnl # Added d_obtain_alias() helper function.
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_D_OBTAIN_ALIAS], [
6 ZFS_LINUX_TEST_SRC([d_obtain_alias], [
7 #include <linux/dcache.h>
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], [
19 ZFS_LINUX_TEST_ERROR([d_obtain_alias()])
24 dnl # 2.6.38 API change
25 dnl # Added d_set_d_op() helper function.
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>
31 d_set_d_op(NULL, NULL);
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], [
41 ZFS_LINUX_TEST_ERROR([d_set_d_op])
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