On Mon, Aug 12, 2024 at 01:25:11PM +0100, Matthew Wilcox wrote: > On Mon, Aug 12, 2024 at 08:31:00AM +0200, Christoph Hellwig wrote: > > Add a convenience wrapper or xa_store that returns an error value when > > there is an existing entry instead of the old entry. This simplifies > > code that wants to check that it is never overwriting an existing > > entry. > > How is that different from xa_insert()? They do look the same from a very quick glance, no idea why I missed it. That's even better than having to invent new helpers.