summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorSahitya Tummala2018-09-19 10:48:47 +0200
committerJaegeuk Kim2018-09-20 00:55:14 +0200
commita7d10cf3e4e3e308da01462a1ef8008233ee523d (patch)
treee9efbbc09c649b95ae5d51bdbd388e472c472b3a /fs/f2fs/gc.c
parentf2fs: split IO error injection according to RW (diff)
downloadkernel-qcow2-linux-a7d10cf3e4e3e308da01462a1ef8008233ee523d.tar.gz
kernel-qcow2-linux-a7d10cf3e4e3e308da01462a1ef8008233ee523d.tar.xz
kernel-qcow2-linux-a7d10cf3e4e3e308da01462a1ef8008233ee523d.zip
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.c2
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;