Yuwei Guan 0e82118b82 f2fs: Reset wait_ms to default if any of the victims have been selected
In non-foreground gc mode, if no victim is selected, the gc process
will wait for no_gc_sleep_time before waking up again. In this
subsequent time, even though a victim will be selected, the gc process
still waits for no_gc_sleep_time before waking up. The configuration
of wait_ms is not reasonable.

After any of the victims have been selected, we need to reset wait_ms to
default sleep time from no_gc_sleep_time.

Change-Id: I79aa139b04de5808fa99a8c08ad2827fa7d83ea6
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Yuwei Guan <Yuwei.Guan@zeekrlife.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
2024-05-26 14:43:33 -03:00
..
2021-04-12 11:23:18 -07:00
2023-12-08 00:11:46 -03:00
2021-08-23 17:17:19 -07:00
2023-12-08 00:11:42 -03:00
2023-12-08 00:11:42 -03:00
2022-06-03 13:04:40 -07:00