Skip to contentSkip to conversation

f2fs: adjust unusable cap before checkpoint=disable mode

PATCH Applied Daeho Jeong 3 participants 3 messages Nov 18, 2024 – Nov 21, 2024 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: adjust unusable cap before checkpoint=disable mode

From: Daeho Jeong <[email protected]>

The unusable cap value must be adjusted before checking whether checkpoint=disable is feasible.

---
 fs/f2fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/super.c +1 -1
index 87ab5696bd48..da85e3c47698 100644
@@ -2474,6 +2474,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
 		}
 	}
 
+	adjust_unusable_cap_perc(sbi);
 	if (enable_checkpoint == !!test_opt(sbi, DISABLE_CHECKPOINT)) {
 		if (test_opt(sbi, DISABLE_CHECKPOINT)) {
 			err = f2fs_disable_checkpoint(sbi);
@@ -2518,7 +2519,6 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
 		(test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0);
 
 	limit_reserve_root(sbi);
-	adjust_unusable_cap_perc(sbi);
 	*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
 	return 0;
 restore_checkpoint:
Signature · 1 line
2.47.0.338.g60cca15819-goog
#2 lore raw
In reply to Daeho Jeong
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, 18 Nov 2024 10:45:35 -0800 you wrote:

From: Daeho Jeong <[email protected]>

The unusable cap value must be adjusted before checking whether checkpoint=disable is feasible.

[...]

Here is the summary with links:
- [f2fs-dev] f2fs: adjust unusable cap before checkpoint=disable mode

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

You are awesome, thank you!

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