]> git.itanic.dy.fi Git - linux-stable/commit
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:20:30 +0000 (17:20 +0200)
commit2a697f135bcbb9fe6020bf64d1a8e06052da7b4e
treee7b723f907bb7c5314de4c62680227f982bbd0a3
parentebf16d57c3300908f69d3af4a0879ea41681a601
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