Skip to contentSkip to conversation

f2fs: Revert "f2fs: Fix indefinite loop in f2fs_gc() v1"

PATCH In review Jia Yang 2 participants 2 messages Jul 14, 2021 – Jul 17, 2021 F2FS file system

lore
Share & tools
lore

Jia Yang

author
#0 lore raw

PATCH 1/1 f2fs: Revert "f2fs: Fix indefinite loop in f2fs_gc() v1"

This reverts commit 957fa47823dfe449c5a15a944e4e7a299a6601db.

The patch "f2fs: Fix indefinite loop in f2fs_gc()" v1 and v4 are all merged. Patch v4 is test info for patch v1. Patch v1 doesn't work and may cause that sbi->cur_victim_sec can't be resetted to NULL_SEGNO, which makes SSR unable to get segment of sbi->cur_victim_sec. So it should be reverted.

The mails record:
[1] https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/
[2] https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/

---
 fs/f2fs/gc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/gc.c +1 -1
index 0e42ee5f7770..396b6f55ec24 100644
@@ -1747,7 +1747,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, bool sync,
 		round++;
 	}
 
-	if (gc_type == FG_GC && seg_freed)
+	if (gc_type == FG_GC)
 		sbi->cur_victim_sec = NULL_SEGNO;
 
 	if (sync)
Signature · 8 lines
2.25.1



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
maintainer Reviewed-by on v1 1/1
#1 lore raw

+Cc Sahitya Tummala <[email protected]>

Quoted 8 lines · Jia Yang

This reverts commit 957fa47823dfe449c5a15a944e4e7a299a6601db.

The patch "f2fs: Fix indefinite loop in f2fs_gc()" v1 and v4 are all merged. Patch v4 is test info for patch v1. Patch v1 doesn't work and may cause that sbi->cur_victim_sec can't be resetted to NULL_SEGNO, which makes SSR unable to get segment of sbi->cur_victim_sec. So it should be reverted.

Quoted 5 lines

The mails record:
[1] https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/
[2] https://lore.kernel.org/linux-f2fs-devel/[email protected]/T/

Thanks,

_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel