Skip to contentSkip to conversation

fsck.f2fs: fix broken file_map output

PATCH New Jaegeuk Kim 1 participant 1 message May 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: fix broken file_map output

The new fsck progress should not be used for file_map.

---
 fsck/fsck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fsck/fsck.c +1 -1
index 3b37519e9054..4b546aeff995 100644
@@ -498,7 +498,7 @@ static int sanity_check_nid(struct f2fs_sb_info *sbi, u32 nid,
 		fsck->chk.valid_node_cnt++;
 
 		/* Progress report */
-		if (sbi->total_valid_node_count > 1000) {
+		if (!c.show_file_map && sbi->total_valid_node_count > 1000) {
 			unsigned int p10 = sbi->total_valid_node_count / 10;
 
 			if (sbi->fsck->chk.checked_node_cnt++ % p10)
Signature · 8 lines
2.36.0.550.gb090851708-goog



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