summaryrefslogtreecommitdiffstats
path: root/config/kernel-dentry-operations.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-dentry-operations.m4')
-rw-r--r--config/kernel-dentry-operations.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/config/kernel-dentry-operations.m4 b/config/kernel-dentry-operations.m4
index dfbea7dfd..3182490c9 100644
--- a/config/kernel-dentry-operations.m4
+++ b/config/kernel-dentry-operations.m4
@@ -5,12 +5,16 @@ AC_DEFUN([ZFS_AC_KERNEL_D_REVALIDATE_NAMEIDATA], [
AC_MSG_CHECKING([whether dops->d_revalidate() takes struct nameidata])
ZFS_LINUX_TRY_COMPILE([
#include <linux/dcache.h>
- ],[
- int (*revalidate) (struct dentry *, struct nameidata *) = NULL;
- struct dentry_operations dops __attribute__ ((unused)) = {
- .d_revalidate = revalidate,
+
+ int revalidate (struct dentry *dentry,
+ struct nameidata *nidata) { return 0; }
+
+ static const struct dentry_operations
+ dops __attribute__ ((unused)) = {
+ .d_revalidate = revalidate,
};
],[
+ ],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_D_REVALIDATE_NAMEIDATA, 1,
[dops->d_revalidate() operation takes nameidata])