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, 7 Oct 2020 13:11:33 +0000 (09:11 -0400)
commit062b735912b9f3aa3e14cd02b5ede08cf8bc093f
tree4bc56a35df9ffe304f552cfc7f882266f152a92e
parenta219b856a2b993da234108307be772448f22b0ce
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