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

From: Matthew Wilcox
Date: Mon Aug 12 2024 - 08:25:26 EST


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