Commit 54d7d9a3 authored by Zhiguo Niu's avatar Zhiguo Niu Committed by Treehugger Robot
Browse files

UPSTREAM: f2fs: enable atgc dynamically if conditions are met



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.

Change-Id: I2e8630f331534036b6a1673087173d37c73c2c91
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarZhiguo Niu <zhiguo.niu@unisoc.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 6efc3a05)
parent 48df573f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment