]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] Move files_cachep to include/file.h
authorChristoph Lameter <clameter@sgi.com>
Thu, 7 Dec 2006 04:32:50 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:22 +0000 (08:39 -0800)
Proper place is in file.h since files_cachep uses are rated to file I/O.

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/file.h
include/linux/slab.h

index 74183e6f7f458052c72d0bf3e8297c83a32ff18c..be37423e9920df66c07e085824fdf71cbba22b44 100644 (file)
@@ -114,4 +114,6 @@ struct files_struct *get_files_struct(struct task_struct *);
 void FASTCALL(put_files_struct(struct files_struct *fs));
 void reset_files_struct(struct task_struct *, struct files_struct *);
 
+extern struct kmem_cache *files_cachep;
+
 #endif /* __LINUX_FILE_H */
index a30a4028a92e96e4ae23448ad9834bc43300ee17..dd9efecff4108bdfb1a419dcbb403b9a94b34682 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    *files_cachep;
 extern kmem_cache_t    *filp_cachep;
 extern kmem_cache_t    *fs_cachep;