Skip to content

Commit a35749b

Browse files
Daeho JeongJaegeuk Kim
authored andcommitted
f2fs: adjust unusable cap before checkpoint=disable mode
The unusable cap value must be adjusted before checking whether checkpoint=disable is feasible. Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 6787a82 commit a35749b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2496,6 +2496,7 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
24962496
}
24972497
}
24982498

2499+
adjust_unusable_cap_perc(sbi);
24992500
if (enable_checkpoint == !!test_opt(sbi, DISABLE_CHECKPOINT)) {
25002501
if (test_opt(sbi, DISABLE_CHECKPOINT)) {
25012502
err = f2fs_disable_checkpoint(sbi);
@@ -2540,7 +2541,6 @@ static int f2fs_remount(struct super_block *sb, int *flags, char *data)
25402541
(test_opt(sbi, POSIX_ACL) ? SB_POSIXACL : 0);
25412542

25422543
limit_reserve_root(sbi);
2543-
adjust_unusable_cap_perc(sbi);
25442544
*flags = (*flags & ~SB_LAZYTIME) | (sb->s_flags & SB_LAZYTIME);
25452545
return 0;
25462546
restore_checkpoint:

0 commit comments

Comments
 (0)