]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: revert summary entry count from 2048 to 512 in 16kb block support
authorDaeho Jeong <daehojeong@google.com>
Tue, 11 Nov 2025 17:52:46 +0000 (09:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:35 +0000 (14:03 +0100)
commit6acd144fa8b115d4e7078e3882ac30151d01219a
tree348397840bfcc25bfe1c250795fdc56a854182c2
parent9a3192f81819da52f3f67b42955da873382dff57
f2fs: revert summary entry count from 2048 to 512 in 16kb block support

[ Upstream commit 7ee8bc3942f20964ad730871b885688ea3a2961a ]

The recent increase in the number of Segment Summary Area (SSA) entries
from 512 to 2048 was an unintentional change in logic of 16kb block
support. This commit corrects the issue.

To better utilize the space available from the erroneous 2048-entry
calculation, we are implementing a solution to share the currently
unused SSA space with neighboring segments. This enhances overall
SSA utilization without impacting the established 8MB segment size.

Fixes: d7e9a9037de2 ("f2fs: Support Block Size == Page Size")
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/gc.c
fs/f2fs/recovery.c
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/super.c
fs/f2fs/sysfs.c
include/linux/f2fs_fs.h