summaryrefslogtreecommitdiffstats
path: root/config/kernel-d-make-root.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-d-make-root.m4')
-rw-r--r--config/kernel-d-make-root.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/config/kernel-d-make-root.m4 b/config/kernel-d-make-root.m4
new file mode 100644
index 000000000..fd2c52d74
--- /dev/null
+++ b/config/kernel-d-make-root.m4
@@ -0,0 +1,12 @@
+dnl #
+dnl # 3.4.0 API change
+dnl # Added d_make_root() to replace previous d_alloc_root() function.
+dnl #
+AC_DEFUN([ZFS_AC_KERNEL_D_MAKE_ROOT], [
+ ZFS_CHECK_SYMBOL_EXPORT(
+ [d_make_root],
+ [fs/dcache.c],
+ [AC_DEFINE(HAVE_D_MAKE_ROOT, 1,
+ [d_make_root() is available])],
+ [])
+])