mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-26 19:51:32 +00:00
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:
parent
53055e6db1
commit
540bec88ab
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user