Commit c43692e8 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] Move vm_area_cachep to include/mm.h

vm_area_cachep is used to store vm_area_structs. So move to mm.h.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 298ec1e2
...@@ -114,6 +114,8 @@ struct vm_area_struct { ...@@ -114,6 +114,8 @@ struct vm_area_struct {
#endif #endif
}; };
extern struct kmem_cache *vm_area_cachep;
/* /*
* This struct defines the per-mm list of VMAs for uClinux. If CONFIG_MMU is * This struct defines the per-mm list of VMAs for uClinux. If CONFIG_MMU is
* disabled, then there's a single shared list of VMAs maintained by the * disabled, then there's a single shared list of VMAs maintained by the
......
...@@ -309,7 +309,6 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags) ...@@ -309,7 +309,6 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
#endif /* CONFIG_SLOB */ #endif /* CONFIG_SLOB */
/* System wide caches */ /* System wide caches */
extern kmem_cache_t *vm_area_cachep;
extern kmem_cache_t *names_cachep; extern kmem_cache_t *names_cachep;
extern kmem_cache_t *files_cachep; extern kmem_cache_t *files_cachep;
extern kmem_cache_t *filp_cachep; extern kmem_cache_t *filp_cachep;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment