summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-01-17 11:33:24 -0800
committerBrian Behlendorf <[email protected]>2013-01-17 11:40:47 -0800
commit84dd1f4f158c2da72f50d5ee5cd798197303ab23 (patch)
tree9e92a145647521c775293a87ea16e7eddce36ec6 /include/linux
parentd4899f4747fd03be748fd1a589b9db5786fa1375 (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 'include/linux')
-rw-r--r--include/linux/mm_compat.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/linux/mm_compat.h b/include/linux/mm_compat.h
index 14fc3d7bb..21a1ef2c0 100644
--- a/include/linux/mm_compat.h
+++ b/include/linux/mm_compat.h
@@ -44,34 +44,6 @@
#define high_wmark_pages(z) (z->pages_high)
#endif
-/*
- * 2.6.37 API compat,
- * The function invalidate_inodes() is no longer exported by the kernel.
- * The prototype however is still available which means it is safe
- * to acquire the symbol's address using spl_kallsyms_lookup_name().
- *
- * 2.6.39 API compat,
- * As for 2.6.39 invalidate_inodes() was updated to take a second
- * argument which controls how dirty inodes should be handled.
- */
-#if defined(HAVE_INVALIDATE_INODES) || defined(HAVE_INVALIDATE_INODES_CHECK)
-# ifdef HAVE_2ARGS_INVALIDATE_INODES
-# define spl_invalidate_inodes(sb, kd) invalidate_inodes(sb, kd)
-# else
-# define spl_invalidate_inodes(sb, kd) invalidate_inodes(sb)
-# endif /* HAVE_2ARGS_INVALIDATE_INODES */
-#else
-# ifdef HAVE_2ARGS_INVALIDATE_INODES
-typedef int (*invalidate_inodes_t)(struct super_block *sb, bool kd);
-extern invalidate_inodes_t invalidate_inodes_fn;
-# define spl_invalidate_inodes(sb, kd) invalidate_inodes_fn(sb, kd)
-# else
-typedef int (*invalidate_inodes_t)(struct super_block *sb);
-extern invalidate_inodes_t invalidate_inodes_fn;
-# define spl_invalidate_inodes(sb, kd) invalidate_inodes_fn(sb)
-# endif /* HAVE_2ARGS_INVALIDATE_INODES */
-#endif /* HAVE_INVALIDATE_INODES || HAVE_INVALIDATE_INODES_CHECK */
-
#if !defined(HAVE_SHRINK_CONTROL_STRUCT)
struct shrink_control {
gfp_t gfp_mask;