Skip to contentSkip to conversation

f2fs-tools: synchronize nat journal with nat cache

PATCH New Jaegeuk Kim 1 participant 1 message Nov 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs-tools: synchronize nat journal with nat cache

From: Daeho Jeong <[email protected]>

Make nat journal and nat cache have the same content.

---
 fsck/fsck.c  |  1 -
 fsck/fsck.h  |  2 --
 fsck/mount.c | 54 ++++++++++++++++++++++++++++------------------------
 3 files changed, 29 insertions(+), 28 deletions(-)
fsck/fsck.c +0 -1
index c97dceb406b3..55eddcaa21da 100644
@@ -735,7 +735,6 @@ fix:
 		struct f2fs_fsck *fsck = F2FS_FSCK(sbi);
 
 		FIX_MSG("Relink root inode, blkaddr: 0x%x", last_blkaddr);
-		update_nat_journal_blkaddr(sbi, root_ino, last_blkaddr);
 		update_nat_blkaddr(sbi, root_ino, root_ino, last_blkaddr);
 
 		if (f2fs_test_bit(root_ino, fsck->nat_area_bitmap))
fsck/fsck.h +0 -2
index c85a0741b257..f6f15e7781b8 100644
@@ -205,8 +205,6 @@ extern void update_sum_entry(struct f2fs_sb_info *, block_t,
 				struct f2fs_summary *);
 extern void get_node_info(struct f2fs_sb_info *, nid_t, struct node_info *);
 extern void nullify_nat_entry(struct f2fs_sb_info *, u32);
-extern void update_nat_journal_blkaddr(struct f2fs_sb_info *sbi, u32 nid,
-					block_t blkaddr);
 extern void rewrite_sit_area_bitmap(struct f2fs_sb_info *);
 extern void build_nat_area_bitmap(struct f2fs_sb_info *);
 extern void build_sit_area_bitmap(struct f2fs_sb_info *);
fsck/mount.c +29 -25

84 lines not on this page · raw message

Signature · 8 lines
2.42.0.869.gea05f2083d-goog



_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel