Re: [f2fs-dev] [PATCH] f2fs: fix defragment writeback range truncation on 32-bit

From: patchwork-bot+f2fs

Date: Tue Oct 13 2026 - 18:35:27 EST


Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:

On Mon, 5 Oct 2026 23:49:54 +0800 you wrote:
> f2fs_defragment_range() flushes the range it is about to defragment:
>
> filemap_write_and_wait_range(inode->i_mapping,
> pg_start << PAGE_SHIFT,
> (pg_end << PAGE_SHIFT) - 1);
>
> pg_start and pg_end are pgoff_t, 32 bits on 32-bit kernels, so both
> shifts are evaluated in 32 bits and truncated before they are widened to
> the loff_t parameters. pg_end is only capped by the file's page count,
> so for a file larger than 4 GiB the shift wraps.
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix defragment writeback range truncation on 32-bit
https://git.kernel.org/jaegeuk/f2fs/c/92154fe28c37

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html