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

Kirill Tkhai ktkhai at virtuozzo.com
Tue Aug 1 13:16:23 MSK 2017


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 at virtuozzo.com>
---
 fs/dcache.c            |    2 +-
 include/linux/dcache.h |    2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

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:
  *



More information about the Devel mailing list