Re: [PATCH] xfs: fix AGFL extent count calculation in xrep_agfl_fill
From: Carlos Maiolino
Date: Wed Jul 01 2026 - 09:06:33 EST
On Tue, 23 Jun 2026 10:41:53 +0800, jiazhenyuan wrote:
> In xrep_agfl_fill(), the call to xagb_bitmap_set() passes
> 'agbno - 1' as the length argument. However, xagb_bitmap_set()
> expects a length (number of blocks), not an end block number.
> Passing 'agbno - 1' causes used_extents to record an incorrect
> range.
>
> Fix this by calculating the correct length as 'agbno - start',
> which represents the actual number of blocks filled into the AGFL.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: fix AGFL extent count calculation in xrep_agfl_fill
commit: 7f53bf79bdbac36b644b9fe7a77516baf8de5109
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>