Merge tag 'xarray-4.20-rc7' of git://git.infradead.org/users/willy/linux-dax
Pull XArray fixes from Matthew Wilcox: "Two bugfixes, each with test-suite updates, two improvements to the test-suite without associated bugs, and one patch adding a missing API" * tag 'xarray-4.20-rc7' of git://git.infradead.org/users/willy/linux-dax: XArray: Fix xa_alloc when id exceeds max XArray tests: Check iterating over multiorder entries XArray tests: Handle larger indices more elegantly XArray: Add xa_cmpxchg_irq and xa_cmpxchg_bh radix tree: Don't return retry entries from lookup
This commit is contained in:
@@ -661,9 +661,7 @@ static int shmem_free_swap(struct address_space *mapping,
|
||||
{
|
||||
void *old;
|
||||
|
||||
xa_lock_irq(&mapping->i_pages);
|
||||
old = __xa_cmpxchg(&mapping->i_pages, index, radswap, NULL, 0);
|
||||
xa_unlock_irq(&mapping->i_pages);
|
||||
old = xa_cmpxchg_irq(&mapping->i_pages, index, radswap, NULL, 0);
|
||||
if (old != radswap)
|
||||
return -ENOENT;
|
||||
free_swap_and_cache(radix_to_swp_entry(radswap));
|
||||
|
Reference in New Issue
Block a user