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


Groups > linux.kernel > #1506154 > unrolled thread

[PATCH 1/5] fs/dcache: include wait.h

Started bySebastian Andrzej Siewior <bigeasy@linutronix.de>
First post2016-10-21 19:10 +0200
Last post2016-10-21 19:10 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/5] fs/dcache: include wait.h Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-10-21 19:10 +0200
    [PATCH 3/5] fs/dcache: init in_lookup_hashtable Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-10-21 19:10 +0200

#1506154 — [PATCH 1/5] fs/dcache: include wait.h

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2016-10-21 19:10 +0200
Subject[PATCH 1/5] fs/dcache: include wait.h
Message-ID<suLup-ag-13@gated-at.bofh.it>
Since commit d9171b934526 ("parallel lookups machinery, part 4 (and
last)") dcache.h is using but does not include wait.h. It works as long
as it is included somehow earlier and fails otherwise.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 include/linux/dcache.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index 5beed7b30561..9a7170d6f38c 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -11,6 +11,7 @@
 #include <linux/rcupdate.h>
 #include <linux/lockref.h>
 #include <linux/stringhash.h>
+#include <linux/wait.h>
 
 struct path;
 struct vfsmount;
-- 
2.9.3

[toc] | [next] | [standalone]


#1506156 — [PATCH 3/5] fs/dcache: init in_lookup_hashtable

FromSebastian Andrzej Siewior <bigeasy@linutronix.de>
Date2016-10-21 19:10 +0200
Subject[PATCH 3/5] fs/dcache: init in_lookup_hashtable
Message-ID<suLuq-ag-43@gated-at.bofh.it>
In reply to#1506154
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 5c7cc953ac81..24e3d7f7b2b7 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3601,6 +3601,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.9.3

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web