]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
f2fs: fix to remove redundant SBI_NEED_FSCK flag set
authorZhiguo Niu <zhiguo.niu@unisoc.com>
Mon, 27 May 2024 11:12:37 +0000 (19:12 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 12 Jun 2024 15:46:02 +0000 (15:46 +0000)
Subsequent f2fs_stop_checkpoint will set cp_err, so this
SBI_NEED_FSCK flag set action is invalid.

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

index 20e2f989013b749c079dce6ac636a151ea540613..ef667fec9a125767089d88259d023c9e4924de12 100644 (file)
@@ -1752,7 +1752,6 @@ static int do_garbage_collect(struct f2fs_sb_info *sbi,
                if (type != GET_SUM_TYPE((&sum->footer))) {
                        f2fs_err(sbi, "Inconsistent segment (%u) type [%d, %d] in SSA and SIT",
                                 segno, type, GET_SUM_TYPE((&sum->footer)));
-                       set_sbi_flag(sbi, SBI_NEED_FSCK);
                        f2fs_stop_checkpoint(sbi, false,
                                STOP_CP_REASON_CORRUPTED_SUMMARY);
                        goto skip;