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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 20 Oct 2023 01:21:26 +0000 (18:21 -0700)
commit9b4c8dd99fe48721410741651d426015e03a4b7a
tree7c01235cb4549d0d9c5683daaf5aadd0f5e364d0
parent50a472bbc79ff9d5a88be8019a60e936cadf9f13
f2fs: fix error handling of __get_node_page

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>
fs/f2fs/node.c