linux/tools/testing/radix-tree
Matthew Wilcox 8a14f4d832 radix-tree: fix radix_tree_create for sibling entries
If the radix tree user attempted to insert a colliding entry with an
existing multiorder entry, then radix_tree_create() could encounter a
sibling entry when walking down the tree to look for a slot.  Use
radix_tree_descend() to fix the problem, and add a test-case to make
sure the problem doesn't come back in future.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jan Kara <jack@suse.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-05-20 17:58:30 -07:00
..
generated radix-tree: add support for multi-order iterating 2016-05-20 17:58:30 -07:00
linux radix-tree: add support for multi-order iterating 2016-05-20 17:58:30 -07:00
.gitignore radix tree test harness 2016-03-17 15:09:34 -07:00
find_next_bit.c radix tree test harness 2016-03-17 15:09:34 -07:00
linux.c radix tree test harness 2016-03-17 15:09:34 -07:00
main.c radix tree test suite: start adding multiorder tests 2016-05-20 17:58:30 -07:00
Makefile radix tree test suite: start adding multiorder tests 2016-05-20 17:58:30 -07:00
multiorder.c radix-tree: fix radix_tree_create for sibling entries 2016-05-20 17:58:30 -07:00
rcupdate.c radix tree test harness 2016-03-17 15:09:34 -07:00
regression1.c radix tree test harness 2016-03-17 15:09:34 -07:00
regression2.c radix tree test suite: allow testing other fan-out values 2016-05-20 17:58:30 -07:00
regression3.c radix-tree tests: add test for radix_tree_iter_next 2016-03-17 15:09:34 -07:00
regression.h radix-tree tests: add regression3 test 2016-03-17 15:09:34 -07:00
tag_check.c radix tree test harness 2016-03-17 15:09:34 -07:00
test.c radix tree test suite: start adding multiorder tests 2016-05-20 17:58:30 -07:00
test.h radix tree test suite: start adding multiorder tests 2016-05-20 17:58:30 -07:00