f2fs: unify the error handling of f2fs_is_valid_blkaddr
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Fri, 8 Mar 2024 06:25:25 +0000 (14:25 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Mar 2024 01:25:17 +0000 (18:25 -0700)
commit31f85ccc84b82cc7eb122af01f5017fbe1e29289
tree71eaa44bd312d580e5f84d5ccf7f62af752d3377
parent11bec96afbfbc4679863db55258de440d786821e
f2fs: unify the error handling of f2fs_is_valid_blkaddr

There are some cases of f2fs_is_valid_blkaddr not handled as
ERROR_INVALID_BLKADDR,so unify the error handling about all of
f2fs_is_valid_blkaddr.
Do f2fs_handle_error in __f2fs_is_valid_blkaddr for cleanup.

Signed-off-by: Zhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: Chao Yu <chao@kernel.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/extent_cache.c
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/recovery.c
fs/f2fs/segment.c