]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: make radix_tree_descend() more useful
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:03:48 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commit086f1c2bc1a5956b1fa4debbb13bdd89119f79c6
tree44919d0e37d0d4d2bc97d6152e313dd64a75365c
parent4dc4548fe26d32607b90e445335e6ac06413b51b
radix-tree: make radix_tree_descend() more useful

Now that the shift amount is stored in the node, radix_tree_descend()
can calculate offset itself from index, which removes several lines of
code from each of the tree walkers.

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>
lib/radix-tree.c