commit | c5beb07e7a06b24f4f27304f6282b5dbd929543b | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <willy@infradead.org> | Wed Oct 31 14:39:28 2018 -0400 |
committer | Matthew Wilcox <willy@infradead.org> | Mon Nov 05 16:38:08 2018 -0500 |
tree | dddd6ce81475ebd3ab56fff6e55efe60d0802393 | |
parent | 4c0608f4a0e76dfb82d3accd20081f4bf47ed143 [diff] |
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>