f2fs: fix the missing write pointer correction
Subsystems (2)
Jaegeuk Kim
maintainerPATCH 1/1 f2fs: fix the missing write pointer correction
If checkpoint was disabled, we missed to fix the write pointers.
Cc <[email protected]>
Fixes 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device")
Signed-off-by Jaegeuk Kim <[email protected]>
--- fs/f2fs/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
fs/f2fs/super.c +3 -1
@@ -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
Quoted 5 lines · On 2025/2/28 5:24, Jaegeuk Kim via Linux-f2fs-devel wrote:
If checkpoint was disabled, we missed to fix the write pointers.
Cc <[email protected]>Fixes 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device")Signed-off-by Jaegeuk Kim <[email protected]>
Reviewed-by Chao Yu <[email protected]>
Thanks,
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.
Cc <[email protected]>Fixes 1015035609e4 ("f2fs: fix changing cursegs if recovery fails on zoned device")Signed-off-by Jaegeuk Kim <[email protected]>--- 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