diff options
author | Brian Behlendorf <[email protected]> | 2013-01-17 11:33:24 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-01-17 11:40:47 -0800 |
commit | 84dd1f4f158c2da72f50d5ee5cd798197303ab23 (patch) | |
tree | 9e92a145647521c775293a87ea16e7eddce36ec6 /config/spl-build.m4 | |
parent | d4899f4747fd03be748fd1a589b9db5786fa1375 (diff) |
Remove spl_invalidate_inodes()
This functionality is no longer required by ZFS, see commit
zfsonlinux/zfs@7b3e34ba5a7ee8d0fda44d214f6f11eb16cdb26f.
Since there are no other consumers, and because it adds
additional autoconf complexity which must be maintained
the spl_invalidate_inodes() function has been removed.
Signed-off-by: Brian Behlendorf <[email protected]>
Issue zfsonlinux/zfs#795
Diffstat (limited to 'config/spl-build.m4')
-rw-r--r-- | config/spl-build.m4 | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index caca05889..dae1ac4fc 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -76,8 +76,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ SPL_AC_5ARGS_PROC_HANDLER SPL_AC_KVASPRINTF SPL_AC_EXPORTED_RWSEM_IS_LOCKED - SPL_AC_KERNEL_INVALIDATE_INODES - SPL_AC_KERNEL_2ARGS_INVALIDATE_INODES SPL_AC_KERNEL_FALLOCATE SPL_AC_SHRINK_DCACHE_MEMORY SPL_AC_SHRINK_ICACHE_MEMORY @@ -2037,78 +2035,6 @@ AC_DEFUN([SPL_AC_EXPORTED_RWSEM_IS_LOCKED], ]) dnl # -dnl # 2.6.37 API compat, -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], [ - AC_MSG_CHECKING([whether invalidate_inodes() is available]) - SPL_LINUX_TRY_COMPILE_SYMBOL([ - #include <linux/fs.h> - ], [ - invalidate_inodes; - ], [invalidate_inodes], [], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_INVALIDATE_INODES, 1, - [invalidate_inodes() is available]) - ], [ - AC_MSG_RESULT(no) - ]) - - AC_MSG_CHECKING([whether invalidate_inodes_check() is available]) - SPL_LINUX_TRY_COMPILE_SYMBOL([ - #include <linux/fs.h> - #ifndef invalidate_inodes - #error invalidate_inodes is not a macro - #endif - ], [ ], [invalidate_inodes_check], [], [ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_INVALIDATE_INODES_CHECK, 1, - [invalidate_inodes_check() is available]) - ], [ - AC_MSG_RESULT(no) - ]) -]) - -dnl # -dnl # 2.6.39 API compat, -dnl # The function invalidate_inodes() now take 2 arguments. The second -dnl # 'kill_dirty' argument describes how invalidate_inodes() should -dnl # handle dirty inodes. Only when set will dirty inodes be discarded, -dnl # otherwise they will be handled as busy. -dnl # -dnl # Unfortunately, we don't have access to the invalidate_inodes() -dnl # prototype so it's not easy to check how many arguments it takes. -dnl # However, this change was done for the benefit of invalidate_device() -dnl # which also added an argument. The invalidate_device() symbol does -dnl # exist in the development headers so if it takes two arguments we -dnl # can fairly safely infer that invalidate_inodes() takes two arguments -dnl # as well. See commit 93b270f76e7ef3b81001576860c2701931cdc78b. -dnl # -AC_DEFUN([SPL_AC_KERNEL_2ARGS_INVALIDATE_INODES], - [AC_MSG_CHECKING([whether invalidate_inodes() wants 2 args]) - SPL_LINUX_TRY_COMPILE([ - #include <linux/fs.h> - ],[ - return __invalidate_device(NULL, 0); - ],[ - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_2ARGS_INVALIDATE_INODES, 1, - [invalidate_inodes() wants 2 args]) - ],[ - AC_MSG_RESULT(no) - ]) -]) - -dnl # dnl # 2.6.xx API compat, dnl # There currently exists no exposed API to partially shrink the dcache. dnl # The expected mechanism to shrink the cache is a registered shrinker |