diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/rmap.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -55,7 +55,17 @@ | |||
55 | 55 | ||
56 | #include "internal.h" | 56 | #include "internal.h" |
57 | 57 | ||
58 | struct kmem_cache *anon_vma_cachep; | 58 | static struct kmem_cache *anon_vma_cachep; |
59 | |||
60 | static inline struct anon_vma *anon_vma_alloc(void) | ||
61 | { | ||
62 | return kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL); | ||
63 | } | ||
64 | |||
65 | static inline void anon_vma_free(struct anon_vma *anon_vma) | ||
66 | { | ||
67 | kmem_cache_free(anon_vma_cachep, anon_vma); | ||
68 | } | ||
59 | 69 | ||
60 | /** | 70 | /** |
61 | * anon_vma_prepare - attach an anon_vma to a memory region | 71 | * anon_vma_prepare - attach an anon_vma to a memory region |