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:07:01 +0000 (17:07 +0000)
commitff9500758381b8bfe0848dc60f0a436df5ee3c55
tree382cc4625fcf995e1f7d972be4ca56ddbc9b3c41
parenta82bd79cbfe94f0b1ffbc3596e046b3e9a53463e
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