Skip to contentSkip to conversation

f2fs: fix to call f2fs_recover_quota_end() correctly

PATCH Applied Chao Yu 2 participants 2 messages Mar 3, 2025 – Mar 4, 2025 F2FS file system

lore
Share & tools
lore

Chao Yu

author maintainer
#0 lore raw

PATCH 1/1 f2fs: fix to call f2fs_recover_quota_end() correctly

f2fs_recover_quota_begin() and f2fs_recover_quota_end() should be called in pair, there is some cases we may skip calling f2fs_recover_quota_end(), fix it.

Fixes e1bb7d3d9cbf ("f2fs: fix to recover quota data correctly")
---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/super.c +1 -1
index 7a8fcc1e278c..3c875dc07266 100644
@@ -4805,10 +4805,10 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent)
 		}
 	}
 
+reset_checkpoint:
 #ifdef CONFIG_QUOTA
 	f2fs_recover_quota_end(sbi, quota_enabled);
 #endif
-reset_checkpoint:
 	/*
 	 * If the f2fs is not readonly and fsync data recovery succeeds,
 	 * write pointer consistency of cursegs and other zones are already
Signature · 1 line
2.48.1
#1 lore raw
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 Mon, 3 Mar 2025 11:25:00 +0800 you wrote:

f2fs_recover_quota_begin() and f2fs_recover_quota_end() should be called in pair, there is some cases we may skip calling f2fs_recover_quota_end(), fix it.

Fixes e1bb7d3d9cbf ("f2fs: fix to recover quota data correctly")

[...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix to call f2fs_recover_quota_end() correctly

    https://git.kernel.org/jaegeuk/f2fs/c/d8f5b91d77a6

You are awesome, thank you!

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