]> git.baikalelectronics.ru Git - kernel.git/commit
XArray: Unify xa_cmpxchg and __xa_cmpxchg
authorMatthew Wilcox <willy@infradead.org>
Wed, 31 Oct 2018 18:39:28 +0000 (14:39 -0400)
committerMatthew Wilcox <willy@infradead.org>
Mon, 5 Nov 2018 21:38:08 +0000 (16:38 -0500)
commit466d6904325273e1fd16504238f7a401d4b1785b
treedddd6ce81475ebd3ab56fff6e55efe60d0802393
parent407302f6ded82efa91989a556a032a9a019ac3a3
XArray: Unify xa_cmpxchg and __xa_cmpxchg

xa_cmpxchg() was one of the largest functions in the xarray
implementation.  By turning it into a wrapper and having the callers
take the lock (like several other functions), we save 160 bytes on a
tinyconfig build and reduce the duplication in xarray.c.

Signed-off-by: Matthew Wilcox <willy@infradead.org>
include/linux/xarray.h
lib/xarray.c