[Devel,rh7] fs: Revert "MS/FS/DCACHE: move vfs caches to headers"

Submitted by Kirill Tkhai on Aug. 1, 2017, 10:16 a.m.

Details

Message ID 150158248759.7764.4864029069911475455.stgit@localhost.localdomain
State New
Series "fs: Revert "MS/FS/DCACHE: move vfs caches to headers""
Headers show

Commit Message

Kirill Tkhai Aug. 1, 2017, 10:16 a.m.
This reverts commit c66a040e021a11424303a573b9c7bde4cb41a18d,
which is leftover from vz6 and it's not need anymore.

After the commit, dentry_cache will be statically declared again.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 fs/dcache.c            |    2 +-
 include/linux/dcache.h |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/dcache.c b/fs/dcache.c
index 9a8b6f3d105..aa1490486c6 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -92,7 +92,7 @@  __cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock);
 
 EXPORT_SYMBOL(rename_lock);
 
-struct kmem_cache *dentry_cache __read_mostly;
+static struct kmem_cache *dentry_cache __read_mostly;
 
 /*
  * This is the single most critical data structure when it comes
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 8da0f76e034..13cb1ecc862 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -133,8 +133,6 @@  struct dentry {
 	struct hlist_node d_alias;	/* inode alias list */
 };
 
-extern struct kmem_cache *dentry_cache;
-
 /*
  * dentry->d_lock spinlock nesting subclasses:
  *