f2fs: add sysfs support for controlling the gc_thread
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 4 Aug 2013 14:09:40 +0000 (23:09 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 6 Aug 2013 12:53:34 +0000 (21:53 +0900)
commitb59d0bae6ca30c496f298881616258f9cde0d9c6
tree04c6a23cfed2ef045a56ca090cbfd510ca3e5e5e
parentf0c5e565bb05a4cd6105bb197c56078462252e78
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>
Documentation/ABI/testing/sysfs-fs-f2fs [new file with mode: 0644]
Documentation/filesystems/f2fs.txt
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/super.c