Re: [PATCH 0/2] xfs: discard every free extent in a whole-AG FITRIM

From: Carlos Maiolino

Date: Tue Nov 03 2026 - 05:25:18 EST


On Mon, 26 Oct 2026 10:54:04 +0900, Daejun Park wrote:
> A whole-device fstrim walks each AG but the last by length. Two bugs
> in that walk leave free extents undiscarded, while fstrim reports the
> whole range as trimmed. Patch 2 depends on patch 1.
>
> The new fstests case xfs/842, sent separately, fails without this
> series and passes with it. ./check -g trim shows no regressions
> (generic/038 and 500 were not run).
>
> [...]

Applied to for-next, thanks!

[1/2] xfs: don't skip free extents in later batches of a whole-AG FITRIM
commit: 595e67d7261673d03c96950ffbb2e545c00376ed
[2/2] xfs: don't skip free extents of the longest length in a whole-AG FITRIM
commit: 5745f4f10a1a16aa5bb020acc38afa33f2d5ff99

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>