diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-05-21 02:03:36 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-21 02:58:30 +0200 |
commit | 8c1244de00ef98f73e21eecc42d84b2742fbb4f9 (patch) | |
tree | 387657f853337b8fffe77215c9254c2ccb2a2ca4 /fs | |
parent | radix-tree: change naming conventions in radix_tree_shrink (diff) | |
download | linux-8c1244de00ef98f73e21eecc42d84b2742fbb4f9.tar.xz linux-8c1244de00ef98f73e21eecc42d84b2742fbb4f9.zip |
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 'fs')
0 files changed, 0 insertions, 0 deletions