On Tue, Nov 21, 2017 at 09:27:49AM +1100, Dave Chinner wrote: > On Mon, Nov 20, 2017 at 01:51:00PM -0800, Matthew Wilcox wrote: > > If you want an example of it in use, I'm pretty happy with this patch > > that switches the brd driver entirely from the radix tree API to the > > xarray API: > > > > http://git.infradead.org/users/willy/linux-dax.git/commitdiff/dbf96ae943e43563cbbaa26e21b656b6fe8f4b0f > > Looks pretty neat, but I'll reserve judgement for when I see the > conversion of the XFS radix tree code.... Challenge accepted. This was a good thing for me to do because I found some opportunities to improve the XArray API. Changes since yesterday: - Added XA_NO_TAG - Added 'max' parameters to xa_get_entries() and xa_get_tagged() - Changed the order of the arguments of xa_get_entries() and xa_get_tagged() to match the radix tree equivalents You can see the patches on that (rebased) branch: xfs: Convert mru cache to XArray xfs: Convert xfs dquot to XArray xfs: Convert pag_ici_root to XArray xfs: Convert m_perag_tree to XArray or did you want me to send them by email?