Skip to content

Commit

Permalink
[PATCH] Move vm_area_cachep to include/mm.h
Browse files Browse the repository at this point in the history
vm_area_cachep is used to store vm_area_structs. So move to mm.h.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Christoph Lameter authored and Linus Torvalds committed Dec 7, 2006
1 parent 298ec1e commit c43692e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions include/linux/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ struct vm_area_struct {
#endif
};

extern struct kmem_cache *vm_area_cachep;

/*
* 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
Expand Down
1 change: 0 additions & 1 deletion include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
#endif /* CONFIG_SLOB */

/* System wide caches */
extern kmem_cache_t *vm_area_cachep;
extern kmem_cache_t *names_cachep;
extern kmem_cache_t *files_cachep;
extern kmem_cache_t *filp_cachep;
Expand Down

0 comments on commit c43692e

Please sign in to comment.