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

XArray tests: Handle larger indices more elegantly



xa_mk_value() only handles values up to LONG_MAX.  I successfully hid
that inside xa_store_index() and xa_erase_index(), but it turned out I
also needed it for testing xa_alloc() on 32-bit machines.  So extract
xa_mk_index() from the above two functions, and convert the non-constant
users of xa_mk_value() to xa_mk_index().

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 55f3f7ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment