fuse: clean up return in fuse_dentry_revalidate()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 5 Sep 2013 09:44:43 +0000 (11:44 +0200)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Tue, 9 Jun 2015 09:31:00 +0000 (11:31 +0200)
commit114aecb58a62c5b6060025a965b7bda5ce7fd8f3
tree4d88572429e8f0f47d4f4f0ff9a2454371fae2bb
parent79f88d525d1bbe57f880b9385058e51adab30046
fuse: clean up return in fuse_dentry_revalidate()

On errors unrelated to the filesystem's state (ENOMEM, ENOTCONN) return the
error itself from ->d_revalidate() insted of returning zero (invalid).

Also make a common label for invalidating the dentry.  This will be used by
the next patch.

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