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>
This commit is contained in:
Jaegeuk Kim 2023-03-20 16:59:31 -07:00 committed by sunshenshen
parent 53055e6db1
commit 540bec88ab

View File

@ -2462,6 +2462,9 @@ static int check_curseg_write_pointer(struct f2fs_sb_info *sbi, int type)
if (i >= MAX_DEVICES) if (i >= MAX_DEVICES)
return -EINVAL; return -EINVAL;
if (c.devices[i].zoned_model != F2FS_ZONED_HM)
return 0;
/* get write pointer position of the zone the curseg points to */ /* get write pointer position of the zone the curseg points to */
cs_sector = (cs_block - c.devices[i].start_blkaddr) cs_sector = (cs_block - c.devices[i].start_blkaddr)
<< log_sectors_per_block; << log_sectors_per_block;