fsck.f2fs: introduce fsck_chk_curseg_info
authorSheng Yong <shengyong1@huawei.com>
Wed, 20 Jun 2018 11:12:13 +0000 (19:12 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 28 Aug 2018 06:49:26 +0000 (23:49 -0700)
commitdf8065e52928bef49f9dd3795aaa090fe79c9f78
tree55627dea26eb76a3b2dfaf5903bbbd34d3f52d94
parented1063104d767f5d9d468093f64be0898da334c2
fsck.f2fs: introduce fsck_chk_curseg_info

If curseg is an empty segment, it will not be checked. This patch
introduces fsck_chk_curseg_info() to check SIT/SSA type of cursegs
to avoid curseg corruption.

Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c
fsck/fsck.h
fsck/main.c