]> err.no Git - linux-2.6/commitdiff
[PATCH] Move vm_area_cachep to include/mm.h
authorChristoph Lameter <clameter@sgi.com>
Thu, 7 Dec 2006 04:32:48 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:22 +0000 (08:39 -0800)
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>
include/linux/mm.h
include/linux/slab.h

index ab6e4974f3797d9847704409886f6e250707dab3..840303769c11e4752c74b2ca3d205bc415c64c68 100644 (file)
@@ -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
index 467b297d2c6f8bf26abff83c46f465dd594daeba..a30a4028a92e96e4ae23448ad9834bc43300ee17 100644 (file)
@@ -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;