linux/fs/f2fs
Daeho Jeong df337ba02c f2fs: fix incomplete block usage in compact SSA summaries
commit 91b76f1059 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: e48e16f3e3 ("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>
History 2026-02-19 16:31:36 +01:00
..
acl.c f2fs: Pass a folio to f2fs_getxattr() 2025-04-28 15:26:42 +00:00
acl.h f2fs: Pass folios to f2fs_init_acl() 2025-04-28 15:26:41 +00:00
checkpoint.c f2fs: add time stats of checkpoint for debug 2025-08-11 17:03:27 +00:00
compress.c f2fs: fix to avoid potential deadlock 2026-01-02 12:57:17 +01:00
data.c f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:31:36 +01:00
debug.c f2fs: introduce is_cur{seg,sec}() 2025-07-09 18:02:20 +00:00
dir.c f2fs: add lookup_mode mount option 2025-08-11 17:03:27 +00:00
extent_cache.c f2fs: fix age extent cache insertion skip on counter overflow 2026-01-02 12:57:17 +01:00
f2fs.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:31:36 +01:00
file.c f2fs: fix to avoid updating zero-sized extent in extent cache 2026-01-02 12:57:17 +01:00
gc.c f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:31:36 +01:00
gc.h f2fs: add gc_boost_gc_greedy sysfs node 2025-07-29 15:02:36 +00:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: Add folio counterparts to page_private_flags functions 2025-07-22 15:57:05 +00:00
inode.c f2fs: drop inode from the donation list when the last file is closed 2025-07-30 17:13:12 +00:00
iostat.c f2fs: add async reset zone command support 2023-06-12 13:04:09 -07:00
iostat.h f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx() 2023-02-07 10:39:28 -08:00
Kconfig f2fs: switch to using the crc32 library 2024-12-01 17:23:02 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: invalidate dentry cache on failed whiteout creation 2026-01-02 12:57:17 +01:00
node.c f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:31:36 +01:00
node.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:31:36 +01:00
recovery.c f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:31:36 +01:00
segment.c f2fs: fix incomplete block usage in compact SSA summaries 2026-02-19 16:31:36 +01:00
segment.h f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:31:36 +01:00
shrinker.c f2fs: handle error cases of memory donation 2025-05-06 15:46:55 +00:00
super.c f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:31:36 +01:00
sysfs.c f2fs: fix out-of-bounds access in sysfs attribute read/write 2026-02-19 16:31:35 +01:00
verity.c f2fs: move verity info pointer to fs-specific part of inode 2025-08-21 13:58:08 +02:00
xattr.c f2fs: use global inline_xattr_slab instead of per-sb slab cache 2026-01-02 12:57:17 +01:00
xattr.h f2fs: use global inline_xattr_slab instead of per-sb slab cache 2026-01-02 12:57:17 +01:00