Skip to contentSkip to conversation

f2fs: fix the missing write pointer correction

PATCH Applied Jaegeuk Kim 3 participants 3 messages Feb 27, 2025 – Feb 28, 2025

Subsystems (2)
lore
Share & tools
lore

Jaegeuk Kim

author maintainer
#0 lore raw

PATCH 1/1 f2fs: fix the missing write pointer correction

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

Fixes 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device")
---
 fs/f2fs/super.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
fs/f2fs/super.c +3 -1
index f5c69cc2de72..7a8fcc1e278c 100644
@@ -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) &&
Signature · 1 line
2.48.1.711.g2feabab25a-goog
#2 lore raw
In reply to Jaegeuk Kim
This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>:

Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <[email protected]>:

Quoted 8 lines · On Thu, 27 Feb 2025 21:24:01 +0000 you wrote:

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

Fixes 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device")
---
 fs/f2fs/super.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Here is the summary with links:
- [f2fs-dev] f2fs: fix the missing write pointer correction

    https://git.kernel.org/jaegeuk/f2fs/c/201e07aec617

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html