aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-01 19:27:29 -0400
committerBrian Behlendorf <[email protected]>2014-10-17 15:11:51 -0700
commit89a461e70c13c860d336dc36358bb02172ed6346 (patch)
treee3e26b68b986178614d46907b3d2ed66604a0707 /config
parent8bbbe46f8680389888d6111f8d81429dcc5defac (diff)
Remove shrink_{i,d}node_cache() wrappers
This is optional functionality which may or may not be useful to ZFS when using older kernels. It is never a hard requirement. Therefore this functionality is being removed from the SPL and a simpler slimmed down version will be added to ZFS. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m444
1 files changed, 0 insertions, 44 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 8a7486c55..8761be485 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -46,8 +46,6 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
SPL_AC_KVASPRINTF
SPL_AC_EXPORTED_RWSEM_IS_LOCKED
SPL_AC_KERNEL_FALLOCATE
- SPL_AC_SHRINK_DCACHE_MEMORY
- SPL_AC_SHRINK_ICACHE_MEMORY
SPL_AC_KERN_PATH
SPL_AC_CONFIG_KALLSYMS
SPL_AC_CONFIG_ZLIB_INFLATE
@@ -1466,48 +1464,6 @@ AC_DEFUN([SPL_AC_EXPORTED_RWSEM_IS_LOCKED],
])
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
-dnl # which is called during memory pressure.
-dnl #
-AC_DEFUN([SPL_AC_SHRINK_DCACHE_MEMORY],
- [AC_MSG_CHECKING([whether shrink_dcache_memory() is available])
- SPL_LINUX_TRY_COMPILE_SYMBOL([
- #include <linux/dcache.h>
- ], [
- shrink_dcache_memory(0, 0);
- ], [shrink_dcache_memory], [fs/dcache.c], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_SHRINK_DCACHE_MEMORY, 1,
- [shrink_dcache_memory() is available])
- ], [
- AC_MSG_RESULT(no)
- ])
-])
-
-dnl #
-dnl # 2.6.xx API compat,
-dnl # There currently exists no exposed API to partially shrink the icache.
-dnl # The expected mechanism to shrink the cache is a registered shrinker
-dnl # which is called during memory pressure.
-dnl #
-AC_DEFUN([SPL_AC_SHRINK_ICACHE_MEMORY],
- [AC_MSG_CHECKING([whether shrink_icache_memory() is available])
- SPL_LINUX_TRY_COMPILE_SYMBOL([
- #include <linux/dcache.h>
- ], [
- shrink_icache_memory(0, 0);
- ], [shrink_icache_memory], [fs/inode.c], [
- AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_SHRINK_ICACHE_MEMORY, 1,
- [shrink_icache_memory() is available])
- ], [
- AC_MSG_RESULT(no)
- ])
-])
-
-dnl #
dnl # 2.6.28 API change
dnl # The kern_path() function has been introduced. We adopt it as the new way
dnl # of looking up paths. When it is not available, we emulate it using the