* [f2fs-dev] [PATCH 1/3] f2fs-tools: remove obsolete fields in struct f2fs_sb_info @ 2024-02-20 12:45 Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 2/3] f2fs-tools: use NULL_ADDR macro to instead magic number for cleanup Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 3/3] f2fs-tools: print hexadecimal number in log Chao Yu 0 siblings, 2 replies; 3+ messages in thread From: Chao Yu @ 2024-02-20 12:45 UTC (permalink / raw) To: jaegeuk; +Cc: linux-f2fs-devel No logic change. Signed-off-by: Chao Yu <chao@kernel.org> --- fsck/f2fs.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/fsck/f2fs.h b/fsck/f2fs.h index e31be22..187e73c 100644 --- a/fsck/f2fs.h +++ b/fsck/f2fs.h @@ -257,9 +257,6 @@ struct f2fs_sb_info { struct f2fs_checkpoint *ckpt; int cur_cp; - struct list_head orphan_inode_list; - unsigned int n_orphans; - /* basic file system units */ unsigned int log_sectors_per_block; /* log2 sectors per block */ unsigned int log_blocksize; /* log2 block size */ -- 2.40.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [f2fs-dev] [PATCH 2/3] f2fs-tools: use NULL_ADDR macro to instead magic number for cleanup 2024-02-20 12:45 [f2fs-dev] [PATCH 1/3] f2fs-tools: remove obsolete fields in struct f2fs_sb_info Chao Yu @ 2024-02-20 12:45 ` Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 3/3] f2fs-tools: print hexadecimal number in log Chao Yu 1 sibling, 0 replies; 3+ messages in thread From: Chao Yu @ 2024-02-20 12:45 UTC (permalink / raw) To: jaegeuk; +Cc: linux-f2fs-devel Use NULL_ADDR macro to instead magic number for cleanup. Signed-off-by: Chao Yu <chao@kernel.org> --- fsck/fsck.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 3461a52..14a9628 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -1071,13 +1071,13 @@ check_next: qf_szchk_type[cur_qtype] = QF_SZCHK_INLINE; block_t blkaddr = le32_to_cpu(node_blk->i.i_addr[ofs]); - if (blkaddr != 0) { + if (blkaddr != NULL_ADDR) { ASSERT_MSG("[0x%x] wrong inline reserve blkaddr:%u", nid, blkaddr); if (c.fix_on) { FIX_MSG("inline_data has wrong 0'th block = %x", blkaddr); - node_blk->i.i_addr[ofs] = 0; + node_blk->i.i_addr[ofs] = NULL_ADDR; node_blk->i.i_blocks = cpu_to_le64(*blk_cnt); need_fix = 1; } @@ -1121,7 +1121,7 @@ check_next: if (c.fix_on) { FIX_MSG("inline_dentry has wrong 0'th block = %x", blkaddr); - node_blk->i.i_addr[ofs] = 0; + node_blk->i.i_addr[ofs] = NULL_ADDR; node_blk->i.i_blocks = cpu_to_le64(*blk_cnt); need_fix = 1; } @@ -1161,8 +1161,8 @@ check_next: node_blk->i.i_addr[ofs + idx] = NULL_ADDR; need_fix = 1; - FIX_MSG("[0x%x] i_addr[%d] = 0", nid, - ofs + idx); + FIX_MSG("[0x%x] i_addr[%d] = NULL_ADDR", + nid, ofs + idx); } continue; } @@ -1190,9 +1190,9 @@ check_next: if (cur_qtype != -1 && blkaddr != NEW_ADDR) qf_last_blkofs[cur_qtype] = child.pgofs; } else if (c.fix_on) { - node_blk->i.i_addr[ofs + idx] = 0; + node_blk->i.i_addr[ofs + idx] = NULL_ADDR; need_fix = 1; - FIX_MSG("[0x%x] i_addr[%d] = 0", nid, ofs + idx); + FIX_MSG("[0x%x] i_addr[%d] = NULL_ADDR", nid, ofs + idx); } } -- 2.40.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [f2fs-dev] [PATCH 3/3] f2fs-tools: print hexadecimal number in log 2024-02-20 12:45 [f2fs-dev] [PATCH 1/3] f2fs-tools: remove obsolete fields in struct f2fs_sb_info Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 2/3] f2fs-tools: use NULL_ADDR macro to instead magic number for cleanup Chao Yu @ 2024-02-20 12:45 ` Chao Yu 1 sibling, 0 replies; 3+ messages in thread From: Chao Yu @ 2024-02-20 12:45 UTC (permalink / raw) To: jaegeuk; +Cc: linux-f2fs-devel Otherwise, it will waste time to convert for comparison. Signed-off-by: Chao Yu <chao@kernel.org> --- fsck/fsck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 14a9628..a42b597 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -1253,8 +1253,8 @@ check: } if (i_blocks != *blk_cnt) { - ASSERT_MSG("ino: 0x%x has i_blocks: %08"PRIx64", " - "but has %u blocks", + ASSERT_MSG("ino: 0x%x has i_blocks: 0x%08"PRIx64", " + "but has 0x%x blocks", nid, i_blocks, *blk_cnt); if (c.fix_on) { node_blk->i.i_blocks = cpu_to_le64(*blk_cnt); -- 2.40.1 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-02-20 12:46 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-02-20 12:45 [f2fs-dev] [PATCH 1/3] f2fs-tools: remove obsolete fields in struct f2fs_sb_info Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 2/3] f2fs-tools: use NULL_ADDR macro to instead magic number for cleanup Chao Yu 2024-02-20 12:45 ` [f2fs-dev] [PATCH 3/3] f2fs-tools: print hexadecimal number in log Chao Yu
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.