diff options
author | Sahitya Tummala <stummala@codeaurora.org> | 2018-09-19 14:18:47 +0530 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-09-19 15:55:14 -0700 |
commit | a7d10cf3e4e3e308da01462a1ef8008233ee523d (patch) | |
tree | e9efbbc09c649b95ae5d51bdbd388e472c472b3a /fs/f2fs/gc.c | |
parent | 6f5c2ed0a26fae6904a88622c126dfb9369548a3 (diff) |
f2fs: add new idle interval timing for discard and gc paths
This helps to control the frequency of submission of discard and
GC requests independently, based on the need.
Suggested-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r-- | fs/f2fs/gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c index a4c1a419611d..77ffa8045a3b 100644 --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -80,7 +80,7 @@ static int gc_thread_func(void *data) if (!mutex_trylock(&sbi->gc_mutex)) goto next; - if (!is_idle(sbi)) { + if (!is_idle(sbi, GC_TIME)) { increase_sleep_time(gc_th, &wait_ms); mutex_unlock(&sbi->gc_mutex); goto next; |