]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: fix to clear unusable_cap for checkpoint=enable
authorChao Yu <chao@kernel.org>
Thu, 7 Aug 2025 01:48:35 +0000 (09:48 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 20 Aug 2025 17:44:09 +0000 (17:44 +0000)
commit2e8f4c2b2bb12fc3d40762f1bb778e95c6ddbc93
treedf4483f7c2111907a048355e3fb684b7b71ff8f6
parentcbba5038ee29f16f583978d6debe486503693c70
f2fs: fix to clear unusable_cap for checkpoint=enable

mount -t f2fs -o checkpoint=disable:10% /dev/vdb /mnt/f2fs/
mount -t f2fs -o remount,checkpoint=enable /dev/vdb /mnt/f2fs/

kernel log:
F2FS-fs (vdb): Adjust unusable cap for checkpoint=disable = 204440 / 10%

If we has assigned checkpoint=enable mount option, unusable_cap{,_perc}
parameters of checkpoint=disable should be reset, then calculation and
log print could be avoid in adjust_unusable_cap_perc().

Fixes: 1ae18f71cb52 ("f2fs: fix checkpoint=disable:%u%%")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c