Re: [f2fs-dev] [PATCH] f2fs: preserve 64-bit FITRIM minimum lengths
From: patchwork-bot+f2fs
Date: Mon Nov 02 2026 - 19:50:28 EST
Hello:
This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:
On Sat, 31 Oct 2026 23:39:35 +0000 you wrote:
> The FITRIM minimum length is a 64-bit byte count. f2fs_ioc_fitrim()
> narrows it to unsigned int while applying the device granularity, so a
> minimum of 4 GiB becomes the device granularity. fstrim can consequently
> discard free extents smaller than the requested minimum.
>
> Use u64 when applying the device granularity. The checkpoint's
> trim_minlen already retains the 64-bit block count; also widen the
> discard policy field and its initializer argument so larger minimums
> are not truncated when passed to the issue and wait paths.
>
> [...]
Here is the summary with links:
- [f2fs-dev] f2fs: preserve 64-bit FITRIM minimum lengths
https://git.kernel.org/jaegeuk/f2fs/c/471dd2221735
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html