dcache: don't clear DCACHE_DISCONNECTED too early
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 18 Jul 2012 22:27:37 +0000 (16:27 -0600)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 Nov 2013 05:16:34 +0000 (00:16 -0500)
commitf80de2cde10350b8d146e375ff8b634e72e6a827
treeccf04843c4f83de44836f6cf265c6e761358b420
parente1a24bb0aa6abaa86b5a95638722ea2036dbaadd
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 <hch@infradead.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c