]> git.hungrycats.org Git - linux/commit
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:14:50 +0000 (17:14 +0000)
commitecf58b678d4bb9951ca122f594c51925de36ec54
tree98b468ea844da2f17e5bcfd79cc4f771ce23685a
parent184b4e42d9290ec2aadf1a6782dbdcd0a7262b41
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