fsck.f2fs: fix corrupted nat entry [0]
authorSheng Yong <shengyong1@huawei.com>
Tue, 23 Feb 2016 11:45:32 +0000 (19:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 24 Feb 2016 17:56:54 +0000 (09:56 -0800)
commitc00fe85bc7166c1c34420cf621e749c3d3e42f78
treed8b8894c8aca8d09fe70137dec6457212b201f46
parentc6e8a6bdc4138a949b94e2dfa2f5f984dcd5508e
fsck.f2fs: fix corrupted nat entry [0]

The first nat entry must be null. If it is corrupted, we set its bit in
nat_area_bitmap, without increasing valid_nat_entry_cnt, fsck_verify will
nullify it at last.

Reported-by: Cheng Yinchao <chengyinchao@huawei.com>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/mount.c