Skip to content
Snippets Groups Projects
Commit a3e4d3f9 authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

XArray: Redesign xa_alloc API


It was too easy to forget to initialise the start index.  Add an
xa_limit data structure which can be used to pass min & max, and
define a couple of special values for common cases.  Also add some
more tests cribbed from the IDR test suite.  Change the return value
from -ENOSPC to -EBUSY to match xa_insert().

Signed-off-by: default avatarMatthew Wilcox <willy@infradead.org>
parent 3ccaf57a
No related branches found
No related tags found
No related merge requests found
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