Skip to content
Commit 41aec91f authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

xarray: Add XArray conditional store operations



Like cmpxchg(), xa_cmpxchg will only store to the index if the current
entry matches the old entry.  It returns the current entry, which is
usually more useful than the errno returned by radix_tree_insert().
For the users who really only want the errno, the xa_insert() wrapper
provides a more convenient calling convention.

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 58d6ea30
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment