Skip to contentSkip to conversation

fsck.f2fs: don't call report_zone on normal partition

PATCH New Jaegeuk Kim 1 participant 1 message Mar 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsck.f2fs: don't call report_zone on normal partition

Report_zone is not supported on normal partition.

---
 fsck/fsck.c | 3 +++
 1 file changed, 3 insertions(+)
fsck/fsck.c +3 -0
index 1b6f2c20b2b3..324c3d5d9304 100644
@@ -2462,6 +2462,9 @@ static int check_curseg_write_pointer(struct f2fs_sb_info *sbi, int type)
 	if (i >= MAX_DEVICES)
 		return -EINVAL;
 
+	if (c.devices[i].zoned_model != F2FS_ZONED_HM)
+		return 0;
+
 	/* get write pointer position of the zone the curseg points to */
 	cs_sector = (cs_block - c.devices[i].start_blkaddr)
 		<< log_sectors_per_block;
Signature · 8 lines
2.40.0.rc1.284.g88254d51c5-goog



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