f2fs: check cur_valid_map_mir & raw_sit block count when flush sit entries
authorZhikang Zhang <zhangzhikang1@huawei.com>
Sun, 8 Apr 2018 20:28:41 +0000 (04:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 28 Jun 2018 21:39:48 +0000 (14:39 -0700)
commit2f3cee5b22b4f4eb8aadb02e0a0dd66861f4aee5
treee87e60ec0ffa7725b52560e9e3f9a27cc66cd1b3
parent8cd907eea55d50d267917c97413ea6bd87fa6bcb
f2fs: check cur_valid_map_mir & raw_sit block count when flush sit entries

We should check valid_map_mir and block count to ensure
the flushed raw_sit is correct.

Signed-off-by: Zhikang Zhang <zhangzhikang1@huawei.com>
Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c