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)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:42 +0000 (12:42 +0200)
commitc6d50296032f0b97473eb2e274dc7cc5d0173847
tree44f6245d88487b68f2f54f5ccb3d766f8d9473b2
parentbf73c62e7ff8dc220f3f57df4e42f9947320c447
ceph: return ceph_mdsc_do_request() errors from __get_parent()

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>
fs/ceph/export.c