From: J. Bruce Fields Date: Wed, 18 Jul 2012 22:27:37 +0000 (-0600) Subject: dcache: don't clear DCACHE_DISCONNECTED too early X-Git-Tag: upstream/snapshot3+hdmi~3996^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f80de2cde10350b8d146e375ff8b634e72e6a827;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dcache: don't clear DCACHE_DISCONNECTED too early 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 Signed-off-by: J. Bruce Fields Signed-off-by: Al Viro --- diff --git a/fs/dcache.c b/fs/dcache.c index 67662be..72c99b8 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2757,7 +2757,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; } /**