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

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Jun 10 18:13:49 MSK 2019


From: "J. Bruce Fields" <bfields at 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 at infradead.org>
Signed-off-by: J. Bruce Fields <bfields at redhat.com>
Signed-off-by: Al Viro <viro at zeniv.linux.org.uk>
(cherry picked from commit f80de2cde10350b8d146e375ff8b634e72e6a827)
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 fs/dcache.c | 1 -
 1 file changed, 1 deletion(-)

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)
 	spin_unlock(&dentry->d_lock);
 
 	/* anon->d_lock still locked, returns locked */
-	anon->d_flags &= ~DCACHE_DISCONNECTED;
 }
 
 /**
-- 
2.21.0



More information about the Devel mailing list