XArray: Add xa_cmpxchg_irq and xa_cmpxchg_bh
authorMatthew Wilcox <willy@infradead.org>
Mon, 26 Nov 2018 21:08:43 +0000 (16:08 -0500)
committerMatthew Wilcox <willy@infradead.org>
Thu, 6 Dec 2018 13:26:17 +0000 (08:26 -0500)
commit55f3f7eab75c10d9b33d122670b5935ab64db50f
tree6a601ac3c08993730dfade808fe6806e1bfbf98c
parenteff3860bbfedbac6edac57fb0d7f3a60e860c1c3
XArray: Add xa_cmpxchg_irq and xa_cmpxchg_bh

These convenience wrappers match the other _irq and _bh wrappers we
already have.  It turns out I'd already open-coded xa_cmpxchg_irq()
in the shmem code, so convert that.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
Documentation/core-api/xarray.rst
include/linux/xarray.h
mm/shmem.c