]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Feb 2026 15:31:36 +0000 (16:31 +0100)
commitdf337ba02ca53ca9cfcefc1ed7ca38424daa52a0
treeaf9683b7b8e2d658b2b5b53c32178d2afc68ff49
parent855c54f1803e3ebc613677b4f389c7f92656a1fc
f2fs: fix incomplete block usage in compact SSA summaries

commit 91b76f1059b60f453b51877f29f0e35693737383 upstream.

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>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/segment.c