The new fsck progress should not be used for file_map.
Reported-by: Michael Benedict <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
---
fsck/fsck.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fsck/fsck.c b/fsck/fsck.c
index 3b37519e9054..4b546aeff995 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -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)
--
2.36.0.550.gb090851708-goog
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel