linux/fs/f2fs
Daeho Jeong c1ca57dc50 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:33:26 +01:00
..
acl.c fs: inline current_umask() and move it to fs_struct.h 2025-11-05 22:51:23 +01:00
acl.h f2fs: Pass folios to f2fs_init_acl() 2025-04-28 15:26:41 +00:00
checkpoint.c f2fs: optimize trace_f2fs_write_checkpoint with enums 2025-12-04 02:00:06 +00:00
compress.c f2fs-for-6.19-rc1 2025-12-09 12:06:20 +09:00
data.c f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:33:26 +01:00
debug.c f2fs: support to show curseg.next_blkoff in debugfs 2025-12-04 02:00:05 +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 2025-12-04 02:00:03 +00:00
f2fs.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:33:26 +01:00
file.c f2fs: add fadvise tracepoint 2025-12-04 02:00:03 +00:00
gc.c f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:33:25 +01:00
gc.h f2fs: set default valid_thresh_ratio to 80 for zoned devices 2025-10-24 21:23:55 +00:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: change the unlock parameter of f2fs_put_page to bool 2025-12-04 02:00:02 +00:00
inode.c f2fs-for-6.19-rc1 2025-12-09 12:06:20 +09: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-for-6.19-rc1 2025-12-09 12:06:20 +09:00
node.c f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:33:26 +01:00
node.h f2fs: fix to do sanity check on node footer in {read,write}_end_io 2026-02-19 16:33:26 +01:00
recovery.c f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:33:25 +01:00
segment.c f2fs: fix incomplete block usage in compact SSA summaries 2026-02-19 16:33:26 +01:00
segment.h f2fs: support non-4KB block size without packed_ssa feature 2026-02-19 16:33:25 +01:00
shrinker.c f2fs: handle error cases of memory donation 2025-05-06 15:46:55 +00:00
super.c Revert "f2fs: block cache/dio write during f2fs_enable_checkpoint()" 2026-02-19 16:33:26 +01:00
sysfs.c f2fs: fix out-of-bounds access in sysfs attribute read/write 2026-02-19 16:33:25 +01:00
verity.c f2fs: use f2fs_filemap_get_folio() to support fault injection 2025-12-04 01:55:57 +00:00
xattr.c f2fs: use global inline_xattr_slab instead of per-sb slab cache 2025-12-04 02:00:02 +00:00
xattr.h f2fs: use global inline_xattr_slab instead of per-sb slab cache 2025-12-04 02:00:02 +00:00