commit | a3e4d3f97ec844de005a679585c04c5c03dfbdb6 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <willy@infradead.org> | Mon Dec 31 10:41:01 2018 -0500 |
committer | Matthew Wilcox <willy@infradead.org> | Wed Feb 06 13:32:23 2019 -0500 |
tree | c4cda3a98cba2d9923e7356e587f6a958b2971d7 | |
parent | 3ccaf57a6a63ad171a951dcaddffc453b2414c7b [diff] |
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: Matthew Wilcox <willy@infradead.org>