]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
f2fs: support non-4KB block size without packed_ssa feature
authorDaeho Jeong <daehojeong@google.com>
Sat, 10 Jan 2026 23:54:05 +0000 (15:54 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 17 Jan 2026 00:00:34 +0000 (00:00 +0000)
commite48e16f3e37fac76e2f0c14c58df2b0398a323b0
treecc0764919437209895cc86aacd6dded0891fdc6e
parent1dd3b437d49ce09f0bd72acc1d694e212f26d1fe
f2fs: support non-4KB block size without packed_ssa feature

Currently, F2FS requires the packed_ssa feature to be enabled when
utilizing non-4KB block sizes (e.g., 16KB). This restriction limits
the flexibility of filesystem formatting options.

This patch allows F2FS to support non-4KB block sizes even when the
packed_ssa feature is disabled. It adjusts the SSA calculation logic to
correctly handle summary entries in larger blocks without the packed
layout.

Cc: stable@kernel.org
Fixes: 7ee8bc3942f2 ("f2fs: revert summary entry count from 2048 to 512 in 16kb block support")
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/f2fs.h
fs/f2fs/gc.c
fs/f2fs/node.c
fs/f2fs/recovery.c
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/super.c
include/linux/f2fs_fs.h