From: Jaegeuk Kim Date: Thu, 27 Feb 2025 19:00:35 +0000 (+0000) Subject: f2fs: fix the missing write pointer correction X-Git-Tag: v6.15-rc1~151^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=201e07aec617b10360df09090651dea9d0d4f7d3;p=thirdparty%2Fkernel%2Flinux.git f2fs: fix the missing write pointer correction If checkpoint was disabled, we missed to fix the write pointers. Cc: Fixes: 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device") Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index f5c69cc2de72b..7a8fcc1e278c5 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4752,8 +4752,10 @@ try_onemore: 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) &&