f2fs: adjust unusable cap before checkpoint=disable mode
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.
Signed-off-by Daeho Jeong <[email protected]>
--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/super.c +1 -1
@@ -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
Quoted 6 lines · Daeho Jeong
From: Daeho Jeong <[email protected]>
The unusable cap value must be adjusted before checking whether checkpoint=disable is feasible.
Signed-off-by Daeho Jeong <[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 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.
Signed-off-by Daeho Jeong <[email protected]>[...]
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