Re: [f2fs-dev] [PATCH] f2fs: fix to avoid potential section-unaligned pinfile
patchwork-bot+f2fs--- via Linux-f2fs-devel <[email protected]> Tue, 14 Jul 2026 03:00:07 +0000
| Newsgroups | net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178399800738.2939750.5347430287438781500.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>: 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 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel