summaryrefslogtreecommitdiffstats
path: root/net/caif
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-12-31 10:41:01 -0500
committerMatthew Wilcox <willy@infradead.org>2019-02-06 13:32:23 -0500
commita3e4d3f97ec844de005a679585c04c5c03dfbdb6 (patch)
treec4cda3a98cba2d9923e7356e587f6a958b2971d7 /net/caif
parent3ccaf57a6a63ad171a951dcaddffc453b2414c7b (diff)
downloadlinux-stable-a3e4d3f97ec844de005a679585c04c5c03dfbdb6.tar.gz
linux-stable-a3e4d3f97ec844de005a679585c04c5c03dfbdb6.tar.bz2
linux-stable-a3e4d3f97ec844de005a679585c04c5c03dfbdb6.zip
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>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions