mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-14 21:33:44 +08:00
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:
parent
3a3d362a86
commit
752fcbe65a
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user