]> git.baikalelectronics.ru Git - kernel.git/commit
radix tree test suite: remove dependencies on height
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:03:16 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit8238e6fb003a38f8a29285ea21dd534c3f948a1f
treef7b6e177ecd1ef09d61f374200837e1b233bea94
parentdba98f4399672126e1267146bcf2af9b1085ab87
radix tree test suite: remove dependencies on height

verify_node() can use node->shift instead of the height.

tree_verify_min_height() can be converted over to using node_maxindex()
and shift_maxindex() instead of radix_tree_maxindex().

Signed-off-by: Matthew Wilcox <willy@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>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/radix-tree/test.c
tools/testing/radix-tree/test.h