summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2016-07-15 19:25:47 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2016-07-15 15:21:24 -0700
commitdcf25fe8fcf4e68057d02e453e7ccf93fa1d1071 (patch)
treee0d549fa23016363dc166c4101d0bb086f015c4e /fs/f2fs/f2fs.h
parent9dfa1baff76d08843aaf5e3c78f6da6950957702 (diff)
downloadop-kernel-dev-dcf25fe8fcf4e68057d02e453e7ccf93fa1d1071.zip
op-kernel-dev-dcf25fe8fcf4e68057d02e453e7ccf93fa1d1071.tar.gz
f2fs: reset default idle interval value
The default value of idle interval is 2 mins, but for most time when screen shutdown, there are still operations during the 2 mins interval, and gc's sleep time is about 30 secs to 60 secs, so there is almost no chance for GC thread to do garbage collecting. Set default value of idle interval value from 2 mins to 5 secs for fixing. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 211183c..521cb92 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -164,7 +164,7 @@ enum {
#define BATCHED_TRIM_BLOCKS(sbi) \
(BATCHED_TRIM_SEGMENTS(sbi) << (sbi)->log_blocks_per_seg)
#define DEF_CP_INTERVAL 60 /* 60 secs */
-#define DEF_IDLE_INTERVAL 120 /* 2 mins */
+#define DEF_IDLE_INTERVAL 5 /* 5 secs */
struct cp_control {
int reason;
OpenPOWER on IntegriCloud