summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-03-22 09:55:09 -0700
committerBrian Behlendorf <[email protected]>2011-03-22 12:15:54 -0700
commitbdf4328b04544ac3759d689d0a68e514b6df1025 (patch)
tree226f3aafe87b0a1844426ce9290cbdb3d07fbb08 /config
parent3517f0b7e928e1a8e7634828fb92d194ea35004d (diff)
Linux 2.6.28 compat, insert_inode_locked()
Added insert_inode_locked() helper function, prior to this most callers used insert_inode_hash(). The older method doesn't check for collisions in the inode_hashtable but it still acceptible for use. Fallback to using insert_inode_hash() when insert_inode_locked() is unavailable.
Diffstat (limited to 'config')
-rw-r--r--config/kernel-insert-inode-locked.m412
-rw-r--r--config/kernel.m41
2 files changed, 13 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])],
+ [])
+])
diff --git a/config/kernel.m4 b/config/kernel.m4
index 2b4df7023..510f6dbc7 100644
--- a/config/kernel.m4
+++ b/config/kernel.m4
@@ -34,6 +34,7 @@ AC_DEFUN([ZFS_AC_CONFIG_KERNEL], [
ZFS_AC_KERNEL_XATTR_HANDLER_SET
ZFS_AC_KERNEL_FSYNC_2ARGS
ZFS_AC_KERNEL_EVICT_INODE
+ ZFS_AC_KERNEL_INSERT_INODE_LOCKED
if test "$LINUX_OBJ" != "$LINUX"; then
KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"