[Devel] [PATCH RHEL7 COMMIT] fs: unexport filp_cachep

Konstantin Khorenko khorenko at virtuozzo.com
Tue Jun 9 08:08:35 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.vz7.5.11
------>
commit 17ef570e1b905c8b38bc3896926784c3f8356afb
Author: Vladimir Davydov <vdavydov at parallels.com>
Date:   Tue Jun 9 19:08:35 2015 +0400

    fs: unexport filp_cachep
    
    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 7d17e33..fa537c1 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 eaa2a22..cbacf4f 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 */



More information about the Devel mailing list