f2fs: fix error handling of __get_node_page
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Wed, 18 Oct 2023 06:51:02 +0000 (14:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:45 +0000 (17:19 +0000)
commitb7b01c7804775cb3586fed3c71bc8c38fcc77000
tree33769b7421c47933b04f9f82dafad8ea2a27752d
parent0237975d8e3ec10c07b8169e22a6cea35afd8475
f2fs: fix error handling of __get_node_page

[ Upstream commit 9b4c8dd99fe48721410741651d426015e03a4b7a ]

Use f2fs_handle_error to record inconsistent node block error
and return -EFSCORRUPTED instead of -EINVAL.

Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/node.c