[rh7,03/14] dcache: don't clear DCACHE_DISCONNECTED too early

Submitted by Andrey Ryabinin on June 10, 2019, 3:13 p.m.


Message ID 20190610151400.12820-3-aryabinin@virtuozzo.com
State New
Series "Series without cover letter"
Headers show

Commit Message

Andrey Ryabinin June 10, 2019, 3:13 p.m.
From: "J. Bruce Fields" <bfields@redhat.com>

DCACHE_DISCONNECTED should not be cleared until we're sure the dentry is
connected all the way up to the root of the filesystem.  It *shouldn't*
be cleared as soon as the dentry is connected to a parent.  That will
cause bugs at least on exportable filesystems.

Acked-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit f80de2cde10350b8d146e375ff8b634e72e6a827)
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
 fs/dcache.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/dcache.c b/fs/dcache.c
index 059277b23f8f..8ad0b6a57736 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -2833,7 +2833,6 @@  static void __d_materialise_dentry(struct dentry *dentry, struct dentry *anon)
 	/* anon->d_lock still locked, returns locked */
-	anon->d_flags &= ~DCACHE_DISCONNECTED;