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, 31 May 2018 18:31:46 +0000 (11:31 -0700)
commit56b07e7e65503cec9e8d74507937a3809dddd48f
tree85c383b0c4fa664f36d5e059d51ace9d1c049135
parent3d165dc3aeef0c9cca7dd760a09f7d08aab0eef2
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