diff options
author | Daeho Jeong <daehojeong@google.com> | 2024-11-18 19:45:35 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-11-21 17:12:30 +0100 |
commit | a35749b1ed64ec7f4df0364fcc6002082d366486 (patch) | |
tree | e2df060b26cc1d46d7d6da65b466a2e2655055fa /fs | |
parent | f2fs: fix to requery extent which cross boundary of inquiry (diff) | |
download | linux-a35749b1ed64ec7f4df0364fcc6002082d366486.tar.xz linux-a35749b1ed64ec7f4df0364fcc6002082d366486.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/f2fs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0097a5770fa3..e9d2267b8788 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2496,6 +2496,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); @@ -2540,7 +2541,6 @@ skip: (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: |