Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372858 > unrolled thread

[PATCH 12/30] radix-tree: Remove restriction on multi-order entries

Started byMatthew Wilcox <willy@linux.intel.com>
First post2016-04-06 23:30 +0200
Last post2016-04-06 23:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 12/30] radix-tree: Remove restriction on multi-order entries Matthew Wilcox <willy@linux.intel.com> - 2016-04-06 23:30 +0200

#1372858 — [PATCH 12/30] radix-tree: Remove restriction on multi-order entries

FromMatthew Wilcox <willy@linux.intel.com>
Date2016-04-06 23:30 +0200
Subject[PATCH 12/30] radix-tree: Remove restriction on multi-order entries
Message-ID<rl3bv-1Cm-59@gated-at.bofh.it>
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 <willy@linux.intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
---
 lib/radix-tree.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/radix-tree.c b/lib/radix-tree.c
index 554986599c63..f2a314cf42cc 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);
-- 
2.8.0.rc3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web