Re: [BUG] xfs: sparse inode allocation can trip i != 1 after AGFL growth
Matt Fleming <[email protected]> Thu, 30 Jul 2026 14:06:19 +0100
| Newsgroups | org.kernel.vger.linux-xfs,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <amtFONut0xhq8qTP@matt-Precision-5490> |
On Wed, Jul 29, 2026 at 02:50:13PM -0400, Brian Foster wrote: > > I want to think about that a little more and need to run more tests, but > unless something better comes along I'll try to post that soonish. BTW, > I had to make some tweaks to the reproducer test to make it work on my > fedora based test vm. Is this something you plan to post for upstream > inclusion? > > Brian > > --- 8< --- > > diff --git a/tests/xfs/842 b/tests/xfs/842 > index 9e694a56..5455998f 100755 > --- a/tests/xfs/842 > +++ b/tests/xfs/842 > @@ -293,9 +293,9 @@ inspect_unmounted > read -r free reserved used <<<"$(ag0_reservation_state)" > reservation=$((reserved - used)) > outside=$((free - reservation)) > -bno_level=$(agf_field 'levels[0]') > -cnt_level=$(agf_field 'levels[1]') > -rmap_level=$(agf_field 'levels[2]') > +bno_level=$(agf_field bnolevel) > +cnt_level=$(agf_field cntlevel) > +rmap_level=$(agf_field rmaplevel) > flcount=$(agf_field flcount) > bno_recs=$(alloc_root_field bnoroot numrecs) > cnt_recs=$(alloc_root_field cntroot numrecs) Thanks for catching this! Yeah I'll submit this upstream. Thanks, Matt