ceph: return ceph_mdsc_do_request() errors from __get_parent()
authorQiujun Huang <hqjagain@gmail.com>
Fri, 6 Mar 2020 01:34:20 +0000 (09:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 15:23:03 +0000 (17:23 +0200)
commitdebfa1e28ebf3e834da0d60d1510e45fca03b5f3
tree331d5b933dbbad9fe75991d0d30fe9da7f6ea1d4
parentf5fce9166d4d35241ab04068a3fbfd19c05f12c6
ceph: return ceph_mdsc_do_request() errors from __get_parent()

[ Upstream commit c6d50296032f0b97473eb2e274dc7cc5d0173847 ]

Return the error returned by ceph_mdsc_do_request(). Otherwise,
r_target_inode ends up being NULL this ends up returning ENOENT
regardless of the error.

Signed-off-by: Qiujun Huang <hqjagain@gmail.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ceph/export.c