]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add sysfs entries to select the gc policy
authorNamjae Jeon <namjae.jeon@samsung.com>
Sun, 4 Aug 2013 14:10:15 +0000 (23:10 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 6 Aug 2013 13:00:18 +0000 (22:00 +0900)
commit0013c1b4bddba98f48e521b53692d98d42918b5b
treef97a7bd3a06822c463e678770fb63dab52d0bc94
parentc6ec5ab56c1ea086e7a22c80bc532b0e506e2f92
f2fs: add sysfs entries to select the gc policy

Add sysfs entry gc_idle to control the gc policy. Where
gc_idle = 1 corresponds to selecting a cost benefit approach,
while gc_idle = 2 corresponds to selecting a greedy approach
to garbage collection. The selection is mutually exclusive one
approach will work at any point. If gc_idle = 0, then this
option is disabled.

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: change the select_gc_type() flow slightly]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Documentation/ABI/testing/sysfs-fs-f2fs
Documentation/filesystems/f2fs.txt
fs/f2fs/gc.c
fs/f2fs/gc.h
fs/f2fs/super.c