f2fs: clean up foreground GC flow
authorChao Yu <yuchao0@huawei.com>
Fri, 19 Aug 2016 15:13:46 +0000 (23:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 30 Aug 2016 01:31:08 +0000 (18:31 -0700)
commit43ced84ec8a7cb1b2e56dd1e262a0c63db79c3c1
tree6a90c133ab7d125a5ea2fc7c2f5e4c6296ce4e0e
parent7c4abcbeccdd286e7d71b3e8f9fefad84112e54c
f2fs: clean up foreground GC flow

This patch changes to check valid block number of one GCed section
directly instead of checking the number in all segments of section
one by one in order to clean up codes of foreground GC.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/gc.c