fsck.f2fs: count the number of inodes during building nat_area_bitmap
authorSheng Yong <shengyong1@huawei.com>
Mon, 14 Mar 2016 06:16:54 +0000 (14:16 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 22 Mar 2016 21:10:00 +0000 (14:10 -0700)
commitbc28669d6b8bbe873b91ca67f6d0fac354d21a13
tree1eeadc0aff614d33b86e8510681692759453426d
parent6e225697bda9459ffb62d0bcccc545193cc9ecdf
fsck.f2fs: count the number of inodes during building nat_area_bitmap

The nid and ino of an inode are the same. So during building
nat_area_bitmap, we can know which nat entry represents an
inode, thus, we can count the number of inodes.

Then in fsck_chk_meta, the amount of inodes can be compared
with that recorded in CP.

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