aboutsummaryrefslogtreecommitdiffstats
path: root/config/spl-build.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-04-20 12:25:59 -0700
committerBrian Behlendorf <[email protected]>2011-04-20 12:30:17 -0700
commitb1cbc4610c8b5a9b5de80cb850a6eb58bb811a1d (patch)
treeabcad262f820ffa79e7d716acc9f81610ca9edf5 /config/spl-build.m4
parent83c623aa1a8895879f03f07b060e1c53a9757f71 (diff)
Linux 2.6.39 compat, kern_path_parent()
The path_lookup() function has been renamed to kern_path_parent() and the flags argument has been removed. The only behavior now offered is that of LOOKUP_PARENT. The spl already always passed this flag so dropping the flag does not impact us.
Diffstat (limited to 'config/spl-build.m4')
-rw-r--r--config/spl-build.m417
1 files changed, 17 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 1a7512c96..13c68358b 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -79,6 +79,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_KERNEL_2ARGS_INVALIDATE_INODES
SPL_AC_SHRINK_DCACHE_MEMORY
SPL_AC_SHRINK_ICACHE_MEMORY
+ SPL_AC_KERN_PATH_PARENT
])
AC_DEFUN([SPL_AC_MODULE_SYMVERS], [
@@ -1785,3 +1786,19 @@ AC_DEFUN([SPL_AC_SHRINK_ICACHE_MEMORY], [
[shrink_icache_memory() is available])],
[])
])
+
+dnl #
+dnl # 2.6.39 API compat,
+dnl # The path_lookup() function has been renamed to kern_path_parent()
+dnl # and the flags argument has been removed. The only behavior now
+dnl # offered is that of LOOKUP_PARENT. The spl already always passed
+dnl # this flag so dropping the flag does not impact us.
+dnl #
+AC_DEFUN([SPL_AC_KERN_PATH_PARENT], [
+ SPL_CHECK_SYMBOL_EXPORT(
+ [kern_path_parent],
+ [fs/namei.c],
+ [AC_DEFINE(HAVE_KERN_PATH_PARENT, 1,
+ [kern_path_parent() is available])],
+ [])
+])