projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29e0967
)
radix-tree: remove restriction on multi-order entries
author
Matthew Wilcox
<
[email protected]
>
Sat, 21 May 2016 00:02:05 +0000
(17:02 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 21 May 2016 00:58:30 +0000
(17:58 -0700)
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 <
[email protected]
>
Reviewed-by: Ross Zwisler <
[email protected]
>
Cc: Konstantin Khlebnikov <
[email protected]
>
Cc: Kirill Shutemov <
[email protected]
>
Cc: Jan Kara <
[email protected]
>
Cc: Neil Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/radix-tree.c
patch
|
blob
|
history
diff --git
a/lib/radix-tree.c
b/lib/radix-tree.c
index b3364b9ecc839208c2226ddd3e32b950c40ea035..6900f7b67c4909515be475c0d6b5ea5a3c1c30f9 100644
(file)
--- 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);