Skip to contentSkip to conversation

f2fs: fix to remove redundant SBI_NEED_FSCK flag set

PATCH In review Zhiguo Niu 2 participants 2 messages May 27, 2024 – May 29, 2024 F2FS file system

lore
Share & tools
lore

Zhiguo Niu

author
#0 lore raw

PATCH 1/1 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.

---
 fs/f2fs/gc.c | 1 -
 1 file changed, 1 deletion(-)
fs/f2fs/gc.c +0 -1
index 20e2f98..ef667fe 100644
@@ -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;
Signature · 1 line
1.9.1