]> git.baikalelectronics.ru Git - kernel.git/commit
radix-tree: remove a use of root->height from delete_node
authorMatthew Wilcox <willy@linux.intel.com>
Sat, 21 May 2016 00:03:13 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 21 May 2016 00:58:30 +0000 (17:58 -0700)
commitdba98f4399672126e1267146bcf2af9b1085ab87
tree77fe9c542dc018fd135fb89c8ac4165f4b6ed077
parent6317ae418b5e0c3a2d1a0c3f33430050a8984a87
radix-tree: remove a use of root->height from delete_node

If radix_tree_shrink returns whether it managed to shrink, then
__radix_tree_delete_node doesn't ned to query the tree to find out
whether it did any work or not.

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