From: Matthew Wilcox Date: Sat, 21 May 2016 00:02:05 +0000 (-0700) Subject: radix-tree: remove restriction on multi-order entries X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa5475760235672f316fbf29cdfb82a75016dbdf;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git radix-tree: remove restriction on multi-order entries Now that sibling pointers are handled explicitly, there is no purpose served by restricting the order to be >= RADIX_TREE_MAP_SHIFT. Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler Cc: Konstantin Khlebnikov Cc: Kirill Shutemov Cc: Jan Kara Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/radix-tree.c b/lib/radix-tree.c index b3364b9ecc83..6900f7b67c49 100644 --- a/lib/radix-tree.c +++ b/lib/radix-tree.c @@ -483,8 +483,6 @@ int __radix_tree_create(struct radix_tree_root *root, unsigned long index, unsigned int height, shift, offset; int error; - BUG_ON((0 < order) && (order < RADIX_TREE_MAP_SHIFT)); - /* Make sure the tree is high enough. */ if (index > radix_tree_maxindex(root->height)) { error = radix_tree_extend(root, index, order);