f2fs: check total_segments from devices in raw_super
authorQiuyang Sun <sunqiuyang@huawei.com>
Mon, 23 Sep 2019 04:22:35 +0000 (12:22 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Oct 2019 17:32:42 +0000 (10:32 -0700)
commit9f701f6c772b15461843b92f9b41a0705e190a86
tree9b269f39919d22348f0351ac054d2617bc9f6147
parent46d9ce195a2b1b8aceeafae1d8f407383a117b0e
f2fs: check total_segments from devices in raw_super

For multi-device F2FS, we should check if the sum of total_segments from
all devices matches segment_count.

Signed-off-by: Qiuyang Sun <sunqiuyang@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c