f2fs: fix the missing write pointer correction

If checkpoint was disabled, we missed to fix the write pointers.

Cc: <stable@vger.kernel.org>
Fixes: 1015035609 ("f2fs: fix changing cursegs if recovery fails on zoned device")
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim
2025-02-27 19:00:35 +00:00
parent 1b60b23975
commit 201e07aec6

View File

@@ -4752,8 +4752,10 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
if (err)
goto free_meta;
if (unlikely(is_set_ckpt_flags(sbi, CP_DISABLED_FLAG)))
if (unlikely(is_set_ckpt_flags(sbi, CP_DISABLED_FLAG))) {
skip_recovery = true;
goto reset_checkpoint;
}
/* recover fsynced data */
if (!test_opt(sbi, DISABLE_ROLL_FORWARD) &&