[Devel] [PATCH rh7] fs: unexport filp_cachep

Vladimir Davydov vdavydov at parallels.com
Tue Jun 9 07:23:59 PDT 2015


It was exported by 1da9426dc5c49 ("Initial patch commit + compilation
fixes"). In RH6 it was used for UBC/KMEM accounting. Not needed anymore.

Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 fs/file_table.c      | 2 +-
 include/linux/file.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/file_table.c b/fs/file_table.c
index 7d17e335fddd..fa537c1ea8b7 100644
--- a/fs/file_table.c
+++ b/fs/file_table.c
@@ -43,7 +43,7 @@ struct files_stat_struct files_stat = {
 DEFINE_STATIC_LGLOCK(files_lglock);
 
 /* SLAB cache for file structures */
-struct kmem_cache *filp_cachep __read_mostly;
+static struct kmem_cache *filp_cachep __read_mostly;
 
 static struct percpu_counter nr_files __cacheline_aligned_in_smp;
 
diff --git a/include/linux/file.h b/include/linux/file.h
index eaa2a220ca9a..cbacf4faf447 100644
--- a/include/linux/file.h
+++ b/include/linux/file.h
@@ -71,6 +71,4 @@ extern void fd_install(unsigned int fd, struct file *file);
 extern void flush_delayed_fput(void);
 extern void __fput_sync(struct file *);
 
-extern struct kmem_cache *filp_cachep;
-
 #endif /* __LINUX_FILE_H */
-- 
2.1.4




More information about the Devel mailing list