fsck.f2fs: simplify fsck_chk_quota_node in PREEN_MODE_1
authorJunling Zheng <zhengjunling@huawei.com>
Mon, 26 Mar 2018 12:47:37 +0000 (20:47 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 7 May 2018 21:49:38 +0000 (14:49 -0700)
Do not do fsck_chk_node_blk to simplify fsck_chk_quota_node in
PREEN_MODE_1, as well as fsck_chk_orphan_node.

Signed-off-by: Junling Zheng <zhengjunling@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c

index bc14912..688f24b 100644 (file)
@@ -1671,6 +1671,7 @@ int fsck_chk_quota_node(struct f2fs_sb_info *sbi)
                        if (!IS_VALID_NID(sbi, ino) ||
                                        !IS_VALID_BLK_ADDR(sbi, ni.blk_addr))
                                return -EINVAL;
+                       continue;
                }
                ret = fsck_chk_node_blk(sbi, NULL, ino,
                                F2FS_FT_REG_FILE, TYPE_INODE, &blk_cnt, NULL);