fsck.f2fs: fix checking wp of all devices

For zoned model, the first device (devices[0]) is not zoned device,
whose zoned_model is not F2FS_ZONED_HM. Let's skip it and check write
pointer of left devices continuously.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Sheng Yong 2024-07-12 10:01:32 +08:00 committed by Jaegeuk Kim
parent 3a3d362a86
commit 752fcbe65a

View File

@ -3367,7 +3367,7 @@ static void fix_wp_sit_alignment(struct f2fs_sb_info *sbi)
if (!c.devices[i].path)
break;
if (c.devices[i].zoned_model != F2FS_ZONED_HM)
break;
continue;
wpd.dev_index = i;
if (f2fs_report_zones(i, chk_and_fix_wp_with_sit, &wpd)) {