diff options
Diffstat (limited to 'fs/xfs/linux-2.6/kmem.h')
-rw-r--r-- | fs/xfs/linux-2.6/kmem.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/fs/xfs/linux-2.6/kmem.h b/fs/xfs/linux-2.6/kmem.h index 9ebabdf7829c..4b6470cf87f0 100644 --- a/fs/xfs/linux-2.6/kmem.h +++ b/fs/xfs/linux-2.6/kmem.h | |||
@@ -100,25 +100,6 @@ kmem_zone_destroy(kmem_zone_t *zone) | |||
100 | extern void *kmem_zone_alloc(kmem_zone_t *, unsigned int __nocast); | 100 | extern void *kmem_zone_alloc(kmem_zone_t *, unsigned int __nocast); |
101 | extern void *kmem_zone_zalloc(kmem_zone_t *, unsigned int __nocast); | 101 | extern void *kmem_zone_zalloc(kmem_zone_t *, unsigned int __nocast); |
102 | 102 | ||
103 | /* | ||
104 | * Low memory cache shrinkers | ||
105 | */ | ||
106 | |||
107 | typedef struct shrinker *kmem_shaker_t; | ||
108 | typedef int (*kmem_shake_func_t)(int, gfp_t); | ||
109 | |||
110 | static inline kmem_shaker_t | ||
111 | kmem_shake_register(kmem_shake_func_t sfunc) | ||
112 | { | ||
113 | return set_shrinker(DEFAULT_SEEKS, sfunc); | ||
114 | } | ||
115 | |||
116 | static inline void | ||
117 | kmem_shake_deregister(kmem_shaker_t shrinker) | ||
118 | { | ||
119 | remove_shrinker(shrinker); | ||
120 | } | ||
121 | |||
122 | static inline int | 103 | static inline int |
123 | kmem_shake_allow(gfp_t gfp_mask) | 104 | kmem_shake_allow(gfp_t gfp_mask) |
124 | { | 105 | { |