Skip to content

Commit f427460

Browse files
Daeho Jeonggregkh
authored andcommitted
f2fs: turn off one_time when forcibly set to foreground GC
[ Upstream commit 8142daf ] one_time mode is only for background GC. So, we need to set it back to false when foreground GC is enforced. Fixes: 9748c2d ("f2fs: do FG_GC when GC boosting is required for zoned devices") Signed-off-by: Daeho Jeong <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 36e6713 commit f427460

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,6 +1891,7 @@ int f2fs_gc(struct f2fs_sb_info *sbi, struct f2fs_gc_control *gc_control)
18911891
/* Let's run FG_GC, if we don't have enough space. */
18921892
if (has_not_enough_free_secs(sbi, 0, 0)) {
18931893
gc_type = FG_GC;
1894+
gc_control->one_time = false;
18941895

18951896
/*
18961897
* For example, if there are many prefree_segments below given

0 commit comments

Comments
 (0)