]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: fix incomplete block usage in compact SSA summaries
authorDaeho Jeong <daehojeong@google.com>
Mon, 26 Jan 2026 22:28:01 +0000 (14:28 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 30 Jan 2026 17:03:49 +0000 (17:03 +0000)
commit91b76f1059b60f453b51877f29f0e35693737383
treed294f8da81a3a032350ab032ed1393b3256d9345
parent6bb9010f78d7f0ff0e4a17b1be951e76d96757a5
f2fs: fix incomplete block usage in compact SSA summaries

In a previous commit, a bug was introduced where compact SSA summaries
failed to utilize the entire block space in non-4KB block size
configurations, leading to inefficient space management.

This patch fixes the calculation logic to ensure that compact SSA
summaries can fully occupy the block regardless of the block size.

Reported-by: Chris Mason <clm@meta.com>
Fixes: e48e16f3e37f ("f2fs: support non-4KB block size without packed_ssa feature")
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c