diff options
author | Brian Behlendorf <[email protected]> | 2011-12-21 14:22:45 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-12-21 14:29:45 -0800 |
commit | 5f6c14b1eda9c7b47d11a3b90e78dea6a7f429e0 (patch) | |
tree | 1d8d0fb39a6e186027cdbf03d67892bed1a976ea /config | |
parent | cd2817f8a6a3c0f7675c3ce954800c29eade5319 (diff) |
Proxmox VE kernel compat, invalidate_inodes()
The Proxmox VE kernel contains a patch which renames the function
invalidate_inodes() to invalidate_inodes_check(). In the process
it adds a 'check' argument and a '#define invalidate_inodes(x)'
compatibility wrapper for legacy callers. Therefore, if either
of these functions are exported invalidate_inodes() can be
safely used.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #58
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 7b6653559..90ff68084 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -1816,6 +1816,13 @@ dnl # The function invalidate_inodes() is no longer exported by the kernel. dnl # The prototype however is still available which means it is safe dnl # to acquire the symbol's address using spl_kallsyms_lookup_name(). dnl # +dnl # The Proxmox VE kernel contains a patch which renames the function +dnl # invalidate_inodes() to invalidate_inodes_check(). In the process +dnl # it adds a 'check' argument and a '#define invalidate_inodes(x)' +dnl # compatibility wrapper for legacy callers. Therefore, if either +dnl # of these functions are exported invalidate_inodes() can be +dnl # safely used. +dnl # AC_DEFUN([SPL_AC_KERNEL_INVALIDATE_INODES], [ SPL_CHECK_SYMBOL_EXPORT( [invalidate_inodes], @@ -1823,6 +1830,12 @@ AC_DEFUN([SPL_AC_KERNEL_INVALIDATE_INODES], [ [AC_DEFINE(HAVE_INVALIDATE_INODES, 1, [invalidate_inodes() is available])], []) + SPL_CHECK_SYMBOL_EXPORT( + [invalidate_inodes_check], + [], + [AC_DEFINE(HAVE_INVALIDATE_INODES_CHECK, 1, + [invalidate_inodes_check() is available])], + []) ]) dnl # |