f2fs: check completion of foreground GC
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Sun, 31 Mar 2013 04:49:18 +0000 (13:49 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 08:27:50 +0000 (17:27 +0900)
commit4ebefc4443898f5429185ef96d85cfce0fbcc16a
tree849b232653ff2253853f97a253eca94cf8d403f8
parent5ec4e49f9bd753e2a6857a96e01f8ae5ff00b459
f2fs: check completion of foreground GC

The foreground GCs are triggered under not enough free sections.
So, we should not skip moving valid blocks in the victim segments.

Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/gc.c