Skip to content

Commit 6924c8b

Browse files
Zhiguo NiuJaegeuk Kim
authored andcommitted
f2fs: fix to remove redundant SBI_NEED_FSCK flag set
Subsequent f2fs_stop_checkpoint will set cp_err, so this SBI_NEED_FSCK flag set action is invalid. Signed-off-by: Zhiguo Niu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 76da333 commit 6924c8b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/f2fs/gc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,6 @@ static int do_garbage_collect(struct f2fs_sb_info *sbi,
17521752
if (type != GET_SUM_TYPE((&sum->footer))) {
17531753
f2fs_err(sbi, "Inconsistent segment (%u) type [%d, %d] in SSA and SIT",
17541754
segno, type, GET_SUM_TYPE((&sum->footer)));
1755-
set_sbi_flag(sbi, SBI_NEED_FSCK);
17561755
f2fs_stop_checkpoint(sbi, false,
17571756
STOP_CP_REASON_CORRUPTED_SUMMARY);
17581757
goto skip;

0 commit comments

Comments
 (0)