Skip to contentSkip to conversation

fsck.f2fs: simplify fsck_chk_quota_node in PREEN_MODE_1

PATCH In review Junling Zheng 2 participants 2 messages Mar 26, 2018 – Mar 28, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: simplify fsck_chk_quota_node in PREEN_MODE_1

Do not do fsck_chk_node_blk to simplify fsck_chk_quota_node in PREEN_MODE_1, as well as fsck_chk_orphan_node.

---
 fsck/fsck.c | 1 +
 1 file changed, 1 insertion(+)
fsck/fsck.c +1 -0
index bc91839..91c8529 100644
@@ -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);
Signature · 6 lines
2.16.2


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Junling Zheng

Do not do fsck_chk_node_blk to simplify fsck_chk_quota_node in PREEN_MODE_1, as well as fsck_chk_orphan_node.

Thanks,

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot