vfat: simplify checks in vfat_lookup()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 25 Apr 2018 14:32:51 +0000 (10:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 13 May 2018 16:09:14 +0000 (12:09 -0400)
commitf6ddc16175f637915e27ded7588b59d187131ad0
tree86f821d9ebbb1ec51329cf187fa6517c28f5b455
parent61fec493c9df7958f8417e1e2f6530a614ee619a
vfat: simplify checks in vfat_lookup()

vfat_d_anon_disconn() is called only if alias->d_parent is equal to
dentry->d_parent *and* it returns false unless alias->d_parent == alias.
But in that case alias is the directory we are doing lookup in, and
d_splice_alias() would've done the right thing.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fat/namei_vfat.c