fsck.f2fs: don't call report_zone on normal partition
Report_zone is not supported on normal partition.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
diff --git a/fsck/fsck.c b/fsck/fsck.c
index 1b6f2c2..324c3d5 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -2462,6 +2462,9 @@
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;