Re: [PATCH V2] f2fs: enable atgc dynamically if conditions are met

From: Chao Yu
Date: Fri Jun 07 2024 - 06:19:54 EST


On 2024/6/7 17:00, Zhiguo Niu wrote:
Now atgc can only be enabled when umounted->mounted device
even related conditions have reached. If the device has not
be umounted->mounted for a long time, atgc can not work.

So enable atgc dynamically when atgc_age_threshold is less than
elapsed_time and ATGC mount option is on.

Signed-off-by: Chao Yu <chao@xxxxxxxxxx>
Signed-off-by: Zhiguo Niu <zhiguo.niu@xxxxxxxxxx>

Reviewed-by: Chao Yu <chao@xxxxxxxxxx>

Thanks,