]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Move fs_cachep to linux/fs_struct.h
authorChristoph Lameter <clameter@sgi.com>
Thu, 7 Dec 2006 04:32:54 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:23 +0000 (08:39 -0800)
fs_cachep is only used in kernel/exit.c and in kernel/fork.c.

It is used to store fs_struct items so it should be placed in linux/fs_struct.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/fs_struct.h
include/linux/slab.h

index c623d12a486e6e1deb90a6ab65d4b71e6b81aab3..11a36ceddf73a1e8670c1efb81a10cd8c0bf3e67 100644 (file)
@@ -18,6 +18,8 @@ struct fs_struct {
        .umask          = 0022, \
 }
 
+extern struct kmem_cache *fs_cachep;
+
 extern void exit_fs(struct task_struct *);
 extern void set_fs_altroot(void);
 extern void set_fs_root(struct fs_struct *, struct vfsmount *, struct dentry *);
index f9202d60d7696e4adde20dde0c2caecd8bce8f6f..bfc063ee94e80d10a3cd6b9dfc2737fa332e1cba 100644 (file)
@@ -310,7 +310,6 @@ static inline void *kcalloc(size_t n, size_t size, gfp_t flags)
 
 /* System wide caches */
 extern kmem_cache_t    *names_cachep;
-extern kmem_cache_t    *fs_cachep;
 
 #endif /* __KERNEL__ */