• M
    xarray: Add XArray conditional store operations · 41aec91f
    Matthew Wilcox 提交于
    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: NMatthew Wilcox <willy@infradead.org>
    41aec91f
xarray.c 30.8 KB