Linux Documentation
 help / color / mirror / Atom feed
* [PATCH] XArray: document that tags persist after storing new elements
@ 2026-08-19  6:57 Christoph Hellwig
  2026-08-31 21:29 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2026-08-19  6:57 UTC (permalink / raw)
  To: willy, corbet; +Cc: skhan, linux-fsdevel, linux-mm, linux-doc

This is a very useful feature, document it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 Documentation/core-api/xarray.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/core-api/xarray.rst b/Documentation/core-api/xarray.rst
index c6c91cbd0c3c..9a0d930a8c79 100644
--- a/Documentation/core-api/xarray.rst
+++ b/Documentation/core-api/xarray.rst
@@ -127,6 +127,8 @@ by using xa_set_mark() and remove the mark from an entry by calling
 xa_clear_mark().  You can ask whether any entry in the XArray has a
 particular mark set by calling xa_marked().  Erasing an entry from the
 XArray causes all marks associated with that entry to be cleared.
+Storing a new entry that replaces an existing entry keeps the marks
+associated with the index intact.
 
 Setting or clearing a mark on any index of a multi-index entry will
 affect all indices covered by that entry.  Querying the mark on any
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] XArray: document that tags persist after storing new elements
  2026-08-19  6:57 [PATCH] XArray: document that tags persist after storing new elements Christoph Hellwig
@ 2026-08-31 21:29 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2026-08-31 21:29 UTC (permalink / raw)
  To: Christoph Hellwig, willy; +Cc: skhan, linux-fsdevel, linux-mm, linux-doc

Christoph Hellwig <hch@lst.de> writes:

> This is a very useful feature, document it.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  Documentation/core-api/xarray.rst | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/Documentation/core-api/xarray.rst b/Documentation/core-api/xarray.rst
> index c6c91cbd0c3c..9a0d930a8c79 100644
> --- a/Documentation/core-api/xarray.rst
> +++ b/Documentation/core-api/xarray.rst
> @@ -127,6 +127,8 @@ by using xa_set_mark() and remove the mark from an entry by calling
>  xa_clear_mark().  You can ask whether any entry in the XArray has a
>  particular mark set by calling xa_marked().  Erasing an entry from the
>  XArray causes all marks associated with that entry to be cleared.
> +Storing a new entry that replaces an existing entry keeps the marks
> +associated with the index intact.
>  
Applied, thanks.

jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-31 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-19  6:57 [PATCH] XArray: document that tags persist after storing new elements Christoph Hellwig
2026-08-31 21:29 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox