diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-05-20 17:03:36 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-20 17:58:30 -0700 |
commit | 8c1244de00ef98f73e21eecc42d84b2742fbb4f9 (patch) | |
tree | 387657f853337b8fffe77215c9254c2ccb2a2ca4 /tools/include | |
parent | af49a63e101eb62376cc1d6bd25b97eb8c691d54 (diff) | |
download | linux-8c1244de00ef98f73e21eecc42d84b2742fbb4f9.tar.bz2 |
radix-tree: tidy up next_chunk
Convert radix_tree_next_chunk to use 'child' instead of 'slot' as the
name of the child node. Also use node_maxindex() where it makes sense.
The 'rnode' variable was unnecessary; it doesn't overlap in usage with
'node', so we can just use 'node' the whole way through the function.
Improve the testcase to start the walk from every index in the carefully
constructed tree, and to accept any index within the range covered by
the entry.
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>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions