Skip to content
Commit c5beb07e authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

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: default avatarMatthew Wilcox <willy@infradead.org>
parent 4c0608f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment