Re: [f2fs-dev] [PATCH] f2fs: fix to avoid potential section-unaligned pinfile
From: patchwork-bot+f2fs
Date: Mon Jul 13 2026 - 23:03:09 EST
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:
On Mon, 29 Jun 2026 11:49:18 +0000 you wrote:
> Blocks of pinfile may not aligned to section size due to wrong use
> on pinfile, result in heavy overhead of GC, let avoid this by
> adding additional check condition in f2fs_setattr().
>
> - truncate -s 8mb pinfile
> : random checkpoint may persist filesize w/ inode
> - fallocate -o 0 -l 8mb pinfile
> - f2fs_fallocate
> - f2fs_expand_inode_data
> - f2fs_allocate_pinning_section
> - f2fs_map_blocks
> - f2fs_map_lock
> - __allocate_data_block
> - file_need_truncate
> : w/ FADVISE_TRUNC_BIT, we can expect unaligned mapping can be
> truncated while open() if f2fs is not umount abnormally
> - f2fs_map_unlock
> : following f2fs checkpoint and sudden power-cut
>
> [...]
Here is the summary with links:
- [f2fs-dev] f2fs: fix to avoid potential section-unaligned pinfile
https://git.kernel.org/jaegeuk/f2fs/c/bf4272cef5ec
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html