Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1675965 > unrolled thread

[PATCH] fs/dcache: init in_lookup_hashtable

Started bySebastian Andrzej Siewior <bigeasy@linutronix.de>
First post2017-06-27 18:20 +0200
Last post2017-06-27 18:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] fs/dcache: init in_lookup_hashtable Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2017-06-27 18:20 +0200

#1675965 — [PATCH] fs/dcache: init in_lookup_hashtable

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2017-06-27 18:20 +0200
Subject[PATCH] fs/dcache: init in_lookup_hashtable
Message-ID<tX1nA-2Ys-33@gated-at.bofh.it>
in_lookup_hashtable was introduced in commit 94bdd655caba ("parallel
lookups machinery, part 3") and never initialized but since it is in
the data it is all zeros. But we need this for -RT.

Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 fs/dcache.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/dcache.c b/fs/dcache.c
index a9f995f6859e..b85da8897ffa 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3608,6 +3608,11 @@ EXPORT_SYMBOL(d_genocide);
 
 void __init vfs_caches_init_early(void)
 {
+	int i;
+
+	for (i = 0; i < ARRAY_SIZE(in_lookup_hashtable); i++)
+		INIT_HLIST_BL_HEAD(&in_lookup_hashtable[i]);
+
 	dcache_init_early();
 	inode_init_early();
 }
-- 
2.13.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web