mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-12-02 22:23:54 +08:00
fsck.f2fs: correct variable type and name
Signed-off-by: Sheng Yong <shengyong1@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
89d5d52da8
commit
278216b5dc
@ -736,7 +736,7 @@ void fsck_chk_inode_blk(struct f2fs_sb_info *sbi, u32 nid,
|
||||
|
||||
/* check node blocks in inode */
|
||||
for (idx = 0; idx < 5; idx++) {
|
||||
block_t blkaddr = le32_to_cpu(node_blk->i.i_nid[idx]);
|
||||
nid_t i_nid = le32_to_cpu(node_blk->i.i_nid[idx]);
|
||||
|
||||
if (idx == 0 || idx == 1)
|
||||
ntype = TYPE_DIRECT_NODE;
|
||||
@ -747,11 +747,10 @@ void fsck_chk_inode_blk(struct f2fs_sb_info *sbi, u32 nid,
|
||||
else
|
||||
ASSERT(0);
|
||||
|
||||
if (blkaddr == 0x0)
|
||||
if (i_nid == 0x0)
|
||||
goto skip;
|
||||
|
||||
ret = fsck_chk_node_blk(sbi, &node_blk->i,
|
||||
blkaddr,
|
||||
ret = fsck_chk_node_blk(sbi, &node_blk->i, i_nid,
|
||||
NULL, ftype, ntype, blk_cnt, &child);
|
||||
if (!ret) {
|
||||
*blk_cnt = *blk_cnt + 1;
|
||||
|
Loading…
Reference in New Issue
Block a user