f2fs: reassign new segment for mode=lfs
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 21 Dec 2016 19:51:32 +0000 (11:51 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 29 Jan 2017 03:46:01 +0000 (12:46 +0900)
commit9d52a504db6db9e4e254576130aa867838daff55
tree4456e4e1959e222e6d7097791e364ed03bfaab5e
parent650d3c4e56e1e92ee6e004648c9deb243e5963e0
f2fs: reassign new segment for mode=lfs

Otherwise we can remain wrong curseg->next_blkoff, resulting in fsck failure.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c