Signed-off-by: Sheng Yong <shengyo...@huawei.com>
---
 fsck/fsck.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/fsck/fsck.c b/fsck/fsck.c
index 8a6373b..f349bd8 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -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;
-- 
2.7.1


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to