aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorJia Yang <jiayang5@huawei.com>2021-07-14 15:46:06 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2021-07-19 11:54:48 -0700
commit10d0786b39b3b91c4fbf8c2926e97ab456a4eea1 (patch)
treea17acdd0c36d9c871bc942a12da9a1b85293e4e6 /fs/f2fs/gc.c
parentf2fs: avoid to create an empty string as the extension_list (diff)
downloadlinux-dev-10d0786b39b3b91c4fbf8c2926e97ab456a4eea1.tar.xz
linux-dev-10d0786b39b3b91c4fbf8c2926e97ab456a4eea1.zip
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/7288dcd4-b168-7656-d1af-7e2cafa4f720@huawei.com/T/ [2] https://lore.kernel.org/linux-f2fs-devel/20190809153653.GD93481@jaegeuk-macbookpro.roam.corp.google.com/T/ Signed-off-by: Jia Yang <jiayang5@huawei.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index d9511827dc83..9dce44619069 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -1748,7 +1748,7 @@ gc_more:
round++;
}
- if (gc_type == FG_GC && seg_freed)
+ if (gc_type == FG_GC)
sbi->cur_victim_sec = NULL_SEGNO;
if (sync)