f2fs: make an accessor to get sections for particular block type
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 2 Feb 2013 14:52:59 +0000 (23:52 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 11 Feb 2013 22:15:02 +0000 (07:15 +0900)
commit5ac206cf4f9aad871aa1f1dd653a3404092db56c
treef9d487406816b58c5e3b1b52a376d459245be803
parent25718423ea6f7118f9c173adff0fac52414571b8
f2fs: make an accessor to get sections for particular block type

Introduce accessor to get the sections based upon the block type
(node,dents...) and modify the functions : should_do_checkpoint,
has_not_enough_free_secs to use this accessor function to get
the node sections and dent sections.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/gc.h
fs/f2fs/segment.h