4 AC_DEFUN([ZFS_AC_KERNEL_D_REVALIDATE_NAMEIDATA], [
5 AC_MSG_CHECKING([whether dops->d_revalidate() takes struct nameidata])
6 ZFS_LINUX_TRY_COMPILE([
7 #include <linux/dcache.h>
9 int (*revalidate) (struct dentry *, struct nameidata *) = NULL;
10 struct dentry_operations dops __attribute__ ((unused)) = {
11 .d_revalidate = revalidate,
15 AC_DEFINE(HAVE_D_REVALIDATE_NAMEIDATA, 1,
16 [dops->d_revalidate() operation takes nameidata])
23 dnl # 2.6.30 API change
24 dnl # The 'struct dentry_operations' was constified in the dentry structure.
26 AC_DEFUN([ZFS_AC_KERNEL_CONST_DENTRY_OPERATIONS], [
27 AC_MSG_CHECKING([whether dentry uses const struct dentry_operations])
28 ZFS_LINUX_TRY_COMPILE([
29 #include <linux/dcache.h>
31 const struct dentry_operations test_d_op = {
35 struct dentry d __attribute__ ((unused));
40 AC_DEFINE(HAVE_CONST_DENTRY_OPERATIONS, 1,
41 [dentry uses const struct dentry_operations])
48 dnl # 2.6.38 API change
49 dnl # Added d_set_d_op() helper function.
51 AC_DEFUN([ZFS_AC_KERNEL_D_SET_D_OP],
52 [AC_MSG_CHECKING([whether d_set_d_op() is available])
53 ZFS_LINUX_TRY_COMPILE_SYMBOL([
54 #include <linux/dcache.h>
56 d_set_d_op(NULL, NULL);
57 ], [d_set_d_op], [fs/dcache.c], [
59 AC_DEFINE(HAVE_D_SET_D_OP, 1,
60 [d_set_d_op() is available])
67 dnl # 2.6.38 API chage
68 dnl # Added sb->s_d_op default dentry_operations member
70 AC_DEFUN([ZFS_AC_KERNEL_S_D_OP],
71 [AC_MSG_CHECKING([whether super_block has s_d_op])
72 ZFS_LINUX_TRY_COMPILE([
75 struct super_block sb __attribute__ ((unused));
79 AC_DEFINE(HAVE_S_D_OP, 1, [struct super_block has s_d_op])