f2fs: allocate remained free segments in the LFS mode
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Sun, 31 Mar 2013 04:58:51 +0000 (13:58 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 08:27:50 +0000 (17:27 +0900)
commit60374688a1a1cc8ef173d3dab42574719b851ac4
treec658d4b8796ccb85675b8c7c931a4c8052b38ea1
parent4ebefc4443898f5429185ef96d85cfce0fbcc16a
f2fs: allocate remained free segments in the LFS mode

This patch adds a new condition that allocates free segments in the current
active section even if SSR is needed.
Otherwise, f2fs cannot allocate remained free segments in the section since
SSR finds dirty segments only.

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