From 540bec88ab794c20b5ea7bb716db1d58495934aa Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 20 Mar 2023 16:59:31 -0700 Subject: [PATCH] fsck.f2fs: don't call report_zone on normal partition Report_zone is not supported on normal partition. Signed-off-by: Jaegeuk Kim --- fsck/fsck.c | 3 +++ 1 file changed, 3 insertions(+) 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 @@ 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;