fsck.f2fs: check nat_entry->ino for all nodes
authorSheng Yong <shengyong1@huawei.com>
Mon, 22 Feb 2016 17:01:15 +0000 (17:01 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 14 Mar 2016 16:26:53 +0000 (09:26 -0700)
commit323c8c82382520c0896388557323724204e04f67
treece2ba19d2a5fdcad0cdac83433e9b32bad032228
parentf102ca4c3f421e04397ab2fab443ca43b86da385
fsck.f2fs: check nat_entry->ino for all nodes

Commit 843f5b9388c4652a ("fsck.f2fs: check ino of an inode") checks
nat_entry->ino for inode. However, the checking is irrelevant to node
type, and if ino of other kinds of nodes gets corrupted, fsck.f2fs
cannot detect it. This patch fixes the commit.

Fixes: 843f5b9388c4652a ("fsck.f2fs: check ino of an inode")
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c