Re: [f2fs-dev] [PATCH] f2fs: revert summary entry count from 2048 to 512 in 16kb block support
From: Chao Yu
Date: Mon Nov 10 2025 - 04:22:52 EST
On 11/5/25 00:24, Daeho Jeong wrote:
> static void write_sum_page(struct f2fs_sb_info *sbi,
> - struct f2fs_summary_block *sum_blk, block_t blk_addr)
> + struct f2fs_summary_block *sum_blk, unsigned int segno)
> {
> - f2fs_update_meta_page(sbi, (void *)sum_blk, blk_addr);
> + struct folio *folio;
w/ 4k-sized block config, I suffered performance regression issue while testing
fallocate() on pinfile.
Seems we need to add below code:
if (SUMS_PER_BLOCK == 1)
return f2fs_update_meta_page(sbi, (void *)sum_blk,
GET_SUM_BLOCK(sbi, segno));
Otherwise, we will load summary block whenever we change segment for curseg.
Thanks,