]> www.infradead.org Git - users/willy/xarray.git/commit
XArray: Test two more things about xa_cmpxchg
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 31 Mar 2020 18:23:59 +0000 (14:23 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 22 Jul 2020 13:58:35 +0000 (09:58 -0400)
commit30dc57651467a967cf3fa7403dedefe36f29e7c8
treed1fcac7f575d667a46e0719ce151d450dcef1e67
parentbb2fdff0f21d6eed13af6148e27e32c120b92c92
XArray: Test two more things about xa_cmpxchg

1. If we xa_cmpxchg() an entry in, it marks the index as not free.
2. If we xa_cmpxchg() NULL in, it marks the index as free.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/test_xarray.c