Re: [PATCH v4] lib: xarray: free unused spare node in xas_create_range()

From: Shardul Bankar

Date: Wed Dec 31 2025 - 01:30:19 EST


Hi Matthew, Andrew,

Just a gentle ping on this one.

v4 has a Reviewed-by from David, and Dev and Jinjiang both followed up
with additional observations and ideas for related cleanups. As far as
I
can see, there are no outstanding objections to the current xas_nomem()
/
xas_create_range() spare-node fix.

If this looks good to you, could it be queued for inclusion via
whichever
tree you think is appropriate?

The separate question that Jinjiang raised about empty xa_nodes
installed
by xas_create_range() but never populated is being discussed in its own
bug-report thread here:

https://lore.kernel.org/all/86834731-02ba-43ea-9def-8b8ca156ec4a@xxxxxxxxxx/

Once this patch is accepted/taken, I plan to follow up with a small
cleanup
patch that simplifies the label usage in xas_create_range() along the
lines
David suggested.

Thanks,
Shardul