XArray: Use xa_cmpxchg to implement xa_reserve
authorMatthew Wilcox <willy@infradead.org>
Wed, 20 Feb 2019 16:51:22 +0000 (11:51 -0500)
committerMatthew Wilcox <willy@infradead.org>
Wed, 20 Feb 2019 22:08:54 +0000 (17:08 -0500)
commit962033d55d0761e0716a01a715c6659c8c8dfc41
tree436d84076c3e16836a59efe46b75d2900a560add
parentb38f6c50270683abf35a388f82cafecce971a003
XArray: Use xa_cmpxchg to implement xa_reserve

Jason feels this is clearer, and it saves a function and an exported
symbol.

Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Documentation/core-api/xarray.rst
include/linux/xarray.h
lib/xarray.c