fsck.f2fs: don't call report_zone on normal partition
PATCH 1/1 fsck.f2fs: don't call report_zone on normal partition
Report_zone is not supported on normal partition.
Signed-off-by Jaegeuk Kim <[email protected]>
--- fsck/fsck.c | 3 +++ 1 file changed, 3 insertions(+)
fsck/fsck.c +3 -0
@@ -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