From: Sebastian Andrzej Siewior Date: Tue, 27 Jun 2017 16:19:11 +0000 (+0200) Subject: fs/dcache: init in_lookup_hashtable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6916363f3083837ed5adb3df2dd90d6b97017dff;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fs/dcache: init in_lookup_hashtable 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 Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Al Viro --- 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(); }