Re: [PATCH 1/3] xarray: add xa_set

Matthew Wilcox
2024-08-12T12:25:16Z

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()?