fuse: drop dentry on failed revalidate
authorAnand Avati <avati@redhat.com>
Thu, 5 Sep 2013 09:44:44 +0000 (11:44 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 9 Jun 2015 09:31:00 +0000 (11:31 +0200)
commit2d2d14b9d34d140ac14afe5ec169a9da0661146e
treeabf5e7f8c04fa32d6190e302604a74d5ea4ab4cb
parent114aecb58a62c5b6060025a965b7bda5ce7fd8f3
fuse: drop dentry on failed revalidate

Drop a subtree when we find that it has moved or been delated.  This can be
done as long as there are no submounts under this location.

If the directory was moved and we come across the same directory in a
future lookup it will be reconnected by d_materialise_unique().

Signed-off-by: Anand Avati <avati@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fuse/dir.c