aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/generated/autoconf.h
diff options
context:
space:
mode:
authorMatthew Wilcox <[email protected]>2016-05-21 00:02:11 +0000
committerLinus Torvalds <[email protected]>2016-05-21 00:58:30 +0000
commit49ea6ebcd3080ebf2c589b5f1437dd8bb2f90395 (patch)
treea6a7659f076d68efeeafa8fcd5c8f4d1ae731474 /tools/testing/radix-tree/generated/autoconf.h
parentradix-tree: introduce radix_tree_load_root() (diff)
downloadkernel-49ea6ebcd3080ebf2c589b5f1437dd8bb2f90395.tar.gz
kernel-49ea6ebcd3080ebf2c589b5f1437dd8bb2f90395.zip
radix-tree: fix extending the tree for multi-order entries at offset 0
The current code will insert entries at each level, as if we're going to add a new entry at the bottom level, so we then get an -EEXIST when we try to insert the entry into the tree. The best way to fix this is to not check 'order' when inserting into an empty tree. We still need to 'extend' the tree to the height necessary for the maximum index corresponding to this entry, so pass that value to radix_tree_extend() rather than the index we're asked to create, or we won't create a tree that's deep enough. Signed-off-by: Matthew Wilcox <[email protected]> Reviewed-by: Ross Zwisler <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Cc: Kirill Shutemov <[email protected]> Cc: Jan Kara <[email protected]> Cc: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/generated/autoconf.h')
0 files changed, 0 insertions, 0 deletions