summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2013-08-04 10:09:40 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-08-06 08:53:34 -0400
commitb59d0bae6ca30c496f298881616258f9cde0d9c6 (patch)
tree04c6a23cfed2ef045a56ca090cbfd510ca3e5e5e /fs/f2fs/f2fs.h
parentf0c5e565bb05a4cd6105bb197c56078462252e78 (diff)
f2fs: add sysfs support for controlling the gc_thread
Add sysfs entries to control the timing parameters for f2fs gc thread. Various Sysfs options introduced are: gc_min_sleep_time: Min Sleep time for GC in ms gc_max_sleep_time: Max Sleep time for GC in ms gc_no_gc_sleep_time: Default Sleep time for GC in ms Cc: Gu Zheng <guz.fnst@cn.fujitsu.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com> Reviewed-by: Gu Zheng <guz.fnst@cn.fujitsu.com> [Jaegeuk Kim: fix an umount bug and some minor changes] Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 78777cdb89de..63813befdd82 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -430,6 +430,10 @@ struct f2fs_sb_info {
430#endif 430#endif
431 unsigned int last_victim[2]; /* last victim segment # */ 431 unsigned int last_victim[2]; /* last victim segment # */
432 spinlock_t stat_lock; /* lock for stat operations */ 432 spinlock_t stat_lock; /* lock for stat operations */
433
434 /* For sysfs suppport */
435 struct kobject s_kobj;
436 struct completion s_kobj_unregister;
433}; 437};
434 438
435/* 439/*