diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-09-13 05:29:32 +0200 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-10-21 16:46:47 +0200 |
commit | 4bb53bdda0d1e061035774ed4868bdeb4d889044 (patch) | |
tree | 105026e609420e18c861295044b0f5f6ffdafe08 /tools/testing/radix-tree/test.c | |
parent | radix tree test suite: Remove multiorder benchmarking (diff) | |
download | linux-4bb53bdda0d1e061035774ed4868bdeb4d889044.tar.xz linux-4bb53bdda0d1e061035774ed4868bdeb4d889044.zip |
radix tree tests: Move item_insert_order
The remaining tests are not suitable for moving in-kernel, so move
item_insert_order() into multiorder.c, make it static and make it use
the XArray.
Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'tools/testing/radix-tree/test.c')
-rw-r--r-- | tools/testing/radix-tree/test.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tools/testing/radix-tree/test.c b/tools/testing/radix-tree/test.c index 5991cfd34f2b..5376b8c5d8d6 100644 --- a/tools/testing/radix-tree/test.c +++ b/tools/testing/radix-tree/test.c @@ -34,21 +34,15 @@ struct item *item_create(unsigned long index, unsigned int order) return ret; } -int item_insert_order(struct radix_tree_root *root, unsigned long index, - unsigned order) +int item_insert(struct radix_tree_root *root, unsigned long index) { - struct item *item = item_create(index, order); - int err = __radix_tree_insert(root, item->index, item->order, item); + struct item *item = item_create(index, 0); + int err = radix_tree_insert(root, item->index, item); if (err) free(item); return err; } -int item_insert(struct radix_tree_root *root, unsigned long index) -{ - return item_insert_order(root, index, 0); -} - void item_sanity(struct item *item, unsigned long index) { unsigned long mask; |