summaryrefslogtreecommitdiffstats
path: root/config/kernel-insert-inode-locked.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-insert-inode-locked.m4')
-rw-r--r--config/kernel-insert-inode-locked.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/config/kernel-insert-inode-locked.m4 b/config/kernel-insert-inode-locked.m4
new file mode 100644
index 000000000..1faff7e64
--- /dev/null
+++ b/config/kernel-insert-inode-locked.m4
@@ -0,0 +1,12 @@
+dnl #
+dnl # 2.6.28 API change
+dnl # Added insert_inode_locked() helper function.
+dnl #
+AC_DEFUN([ZFS_AC_KERNEL_INSERT_INODE_LOCKED], [
+ ZFS_CHECK_SYMBOL_EXPORT(
+ [insert_inode_locked],
+ [fs/inode.c],
+ [AC_DEFINE(HAVE_INSERT_INODE_LOCKED, 1,
+ [insert_inode_locked() is available])],
+ [])
+])