diff --git a/fs/dcache.c b/fs/dcache.c
index b422baff02c9..28426446682e 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -98,7 +98,8 @@ EXPORT_SYMBOL(dotdot_name);
 
 static unsigned int d_hash_shift __read_mostly;
 
-static struct hlist_bl_head *dentry_hashtable __read_mostly;
+struct hlist_bl_head *dentry_hashtable __read_mostly;
+EXPORT_SYMBOL_GPL(dentry_hashtable);
 
 static inline struct hlist_bl_head *d_hash(unsigned int hash)
 {
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 6b351e009f59..d454343a1c19 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -599,4 +599,6 @@ struct name_snapshot {
 void take_dentry_name_snapshot(struct name_snapshot *, struct dentry *);
 void release_dentry_name_snapshot(struct name_snapshot *);
 
+extern struct hlist_bl_head *dentry_hashtable __read_mostly;
+
 #endif	/* __LINUX_DCACHE_H */
