Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9aeb147 authored by Yuwei Guan's avatar Yuwei Guan Committed by Jaegeuk Kim
Browse files

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.

Signed-off-by: default avatarYuwei Guan <Yuwei.Guan@zeekrlife.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent dae7b244
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment