| .. | .. |
|---|
| 11 | 11 | }; |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | struct item *item_create(unsigned long index, unsigned int order); |
|---|
| 14 | | -int __item_insert(struct radix_tree_root *root, struct item *item); |
|---|
| 15 | 14 | int item_insert(struct radix_tree_root *root, unsigned long index); |
|---|
| 16 | 15 | void item_sanity(struct item *item, unsigned long index); |
|---|
| 17 | | -int item_insert_order(struct radix_tree_root *root, unsigned long index, |
|---|
| 18 | | - unsigned order); |
|---|
| 16 | +void item_free(struct item *item, unsigned long index); |
|---|
| 19 | 17 | int item_delete(struct radix_tree_root *root, unsigned long index); |
|---|
| 20 | | -int item_delete_rcu(struct radix_tree_root *root, unsigned long index); |
|---|
| 18 | +int item_delete_rcu(struct xarray *xa, unsigned long index); |
|---|
| 21 | 19 | struct item *item_lookup(struct radix_tree_root *root, unsigned long index); |
|---|
| 22 | 20 | |
|---|
| 23 | 21 | void item_check_present(struct radix_tree_root *root, unsigned long index); |
|---|
| .. | .. |
|---|
| 29 | 27 | unsigned long nr, int chunk); |
|---|
| 30 | 28 | void item_kill_tree(struct radix_tree_root *root); |
|---|
| 31 | 29 | |
|---|
| 32 | | -int tag_tagged_items(struct radix_tree_root *, pthread_mutex_t *, |
|---|
| 33 | | - unsigned long start, unsigned long end, unsigned batch, |
|---|
| 34 | | - unsigned iftag, unsigned thentag); |
|---|
| 35 | | -unsigned long find_item(struct radix_tree_root *, void *item); |
|---|
| 30 | +int tag_tagged_items(struct xarray *, unsigned long start, unsigned long end, |
|---|
| 31 | + unsigned batch, xa_mark_t iftag, xa_mark_t thentag); |
|---|
| 36 | 32 | |
|---|
| 33 | +void xarray_tests(void); |
|---|
| 37 | 34 | void tag_check(void); |
|---|
| 38 | 35 | void multiorder_checks(void); |
|---|
| 39 | 36 | void iteration_test(unsigned order, unsigned duration); |
|---|
| 37 | +void iteration_test2(unsigned duration); |
|---|
| 40 | 38 | void benchmark(void); |
|---|
| 41 | 39 | void idr_checks(void); |
|---|
| 42 | 40 | void ida_tests(void); |
|---|
| .. | .. |
|---|
| 58 | 56 | unsigned long node_maxindex(struct radix_tree_node *); |
|---|
| 59 | 57 | unsigned long shift_maxindex(unsigned int shift); |
|---|
| 60 | 58 | int radix_tree_cpu_dead(unsigned int cpu); |
|---|
| 61 | | -struct radix_tree_preload { |
|---|
| 62 | | - unsigned nr; |
|---|
| 63 | | - struct radix_tree_node *nodes; |
|---|
| 64 | | -}; |
|---|
| 65 | 59 | extern struct radix_tree_preload radix_tree_preloads; |
|---|