mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
f2fs: turn off one_time when forcibly set to foreground GC
[ Upstream commit8142daf8a5
] one_time mode is only for background GC. So, we need to set it back to false when foreground GC is enforced. Fixes:9748c2ddea
("f2fs: do FG_GC when GC boosting is required for zoned devices") Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b0002acbec
commit
8b1f1f83e3
|
@ -1899,6 +1899,7 @@ gc_more:
|
|||
/* Let's run FG_GC, if we don't have enough space. */
|
||||
if (has_not_enough_free_secs(sbi, 0, 0)) {
|
||||
gc_type = FG_GC;
|
||||
gc_control->one_time = false;
|
||||
|
||||
/*
|
||||
* For example, if there are many prefree_segments below given
|
||||
|
|
Loading…
Reference in New Issue
Block a user