diff mbox series

[f2fs-dev] fsck.f2fs: fix checking wp of all devices

Message ID 20240712020133.140148-4-shengyong@oppo.com (mailing list archive)
State New
Headers show
Series [f2fs-dev] fsck.f2fs: fix checking wp of all devices | expand

Commit Message

Sheng Yong July 12, 2024, 2:01 a.m. UTC
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>
---
 fsck/fsck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Chao Yu July 12, 2024, 7:23 a.m. UTC | #1
On 2024/7/12 10:01, Sheng Yong wrote:
> 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>

Thanks,
diff mbox series

Patch

diff --git a/fsck/fsck.c b/fsck/fsck.c
index 6cb02729aec7..b15931eba3a0 100644
--- a/fsck/fsck.c
+++ b/fsck/fsck.c
@@ -3351,7 +3351,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)) {