diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2006-03-22 03:08:13 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 10:53:58 -0500 |
commit | fcc234f888ba2365c44ba0507eb8a18eebf1f594 (patch) | |
tree | afc0d6f5a6191a94d8285f0b21ecec5a9b911df9 /mm/rmap.c | |
parent | b5d8ca7c50826c0b456b4a646875dc573adfde2b (diff) |
[PATCH] mm: kill kmem_cache_t usage
We have struct kmem_cache now so use it instead of the old typedef.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -58,7 +58,7 @@ | |||
58 | 58 | ||
59 | //#define RMAP_DEBUG /* can be enabled only for debugging */ | 59 | //#define RMAP_DEBUG /* can be enabled only for debugging */ |
60 | 60 | ||
61 | kmem_cache_t *anon_vma_cachep; | 61 | struct kmem_cache *anon_vma_cachep; |
62 | 62 | ||
63 | static inline void validate_anon_vma(struct vm_area_struct *find_vma) | 63 | static inline void validate_anon_vma(struct vm_area_struct *find_vma) |
64 | { | 64 | { |
@@ -166,7 +166,8 @@ void anon_vma_unlink(struct vm_area_struct *vma) | |||
166 | anon_vma_free(anon_vma); | 166 | anon_vma_free(anon_vma); |
167 | } | 167 | } |
168 | 168 | ||
169 | static void anon_vma_ctor(void *data, kmem_cache_t *cachep, unsigned long flags) | 169 | static void anon_vma_ctor(void *data, struct kmem_cache *cachep, |
170 | unsigned long flags) | ||
170 | { | 171 | { |
171 | if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == | 172 | if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) == |
172 | SLAB_CTOR_CONSTRUCTOR) { | 173 | SLAB_CTOR_CONSTRUCTOR) { |