]> git.baikalelectronics.ru Git - kernel.git/commit
radix tree test suite: Add tests for ida_simple_get() and ida_simple_remove()
authorRehas Sachdeva <aquannie@gmail.com>
Mon, 20 Feb 2017 11:40:00 +0000 (06:40 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 7 Mar 2017 18:18:19 +0000 (13:18 -0500)
commitbcde4f997cae001a731ae7312c3ee29a4bb79c24
tree88c78261a7976af4533989e52ae104f206fa63b5
parentf013348613f8e91e06f0630c580336094dc71c41
radix tree test suite: Add tests for ida_simple_get() and ida_simple_remove()

Assert that ida_simple_get() allocates an id in the passed range or returns
error on failure, and ida_simple_remove() releases an allocated id.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
tools/testing/radix-tree/idr-test.c