dcache: d_splice_alias should ignore DCACHE_DISCONNECTED
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 17 Feb 2014 23:03:57 +0000 (18:03 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 7 Aug 2014 18:40:10 +0000 (14:40 -0400)
commitda093a9b76efca0a7a217af538929e1ecb204466
tree2ba563181c06bbcbd68fe4144f98e6a31d813d81
parent908790fa3b779d37365e6b28e3aa0f6e833020c3
dcache: d_splice_alias should ignore DCACHE_DISCONNECTED

Any IS_ROOT() alias should be safe to use; there's nothing special about
DCACHE_DISCONNECTED dentries.

Note that this is in fact useful for filesystems such as btrfs which can
legimately encounter a directory with a preexisting IS_ROOT alias on a
lookup that crosses into a subvolume.  (Those aliases are currently
marked DCACHE_DISCONNECTED--but not really for any good reason, and
we'll change that soon.)

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c