• Matthew Wilcox's avatar
    xarray: Add XArray conditional store operations · 41aec91f
    Matthew Wilcox authored
    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>
    41aec91f
xarray.h 26.8 KB