diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-20 22:28:57 +0100 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-03-04 18:22:33 +0100 |
commit | 9ddabae70a67b6fd6d5c7f96dba95a7ce26e7dce (patch) | |
tree | a4471bdea4d842fa62ce655eb25e214efdcb0810 /fs/f2fs | |
parent | f2fs: print zone status in string and some log (diff) | |
download | linux-9ddabae70a67b6fd6d5c7f96dba95a7ce26e7dce.tar.xz linux-9ddabae70a67b6fd6d5c7f96dba95a7ce26e7dce.zip |
f2fs: allow to mount if cap is 100
Don't block mounting the partition, if cap is 100%.
Reviewed-by: Chao Yu <chao@kernel.org>
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/segment.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 0e32ea36b0f4..7a060219da85 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -904,6 +904,9 @@ int f2fs_disable_cp_again(struct f2fs_sb_info *sbi, block_t unusable) { int ovp_hole_segs = (overprovision_segments(sbi) - reserved_segments(sbi)); + + if (F2FS_OPTION(sbi).unusable_cap_perc == 100) + return 0; if (unusable > F2FS_OPTION(sbi).unusable_cap) return -EAGAIN; if (is_sbi_flag_set(sbi, SBI_CP_DISABLED_QUICK) && |