Skip to contentSkip to conversation

radix-tree-add-radix_tree_split.patch removed from -mm tree

merged [email protected] 1 participant 1 message Dec 15, 2016

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: radix-tree: add radix_tree_split
has been removed from the -mm tree. Its filename was
radix-tree-add-radix_tree_split.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Matthew Wilcox <[email protected]>
Subject: radix-tree: add radix_tree_split

This new function splits a larger multiorder entry into smaller entries (potentially multi-order entries). These entries are initialised to RADIX_TREE_RETRY to ensure that RCU walkers who see this state aren't confused. The caller should then call radix_tree_for_each_slot() and radix_tree_replace_slot() in order to turn these retry entries into the intended new entries. Tags are replicated from the original multiorder entry into each new entry.

---

 include/linux/radix-tree.h            |   12 ++
 lib/radix-tree.c                      |  142 +++++++++++++++++++++++-
 tools/testing/radix-tree/multiorder.c |   64 ++++++++++
 3 files changed, 214 insertions(+), 4 deletions(-)
include/linux/radix-tree.h renamed from include/linux/radix-tree.h~radix-tree-add-radix_tree_split +12 -0
diff -puN include/linux/radix-tree.h~radix-tree-add-radix_tree_split include/linux/radix-tree.h
@@ -80,6 +80,14 @@ static inline bool radix_tree_is_interna
 #define RADIX_TREE_MAX_PATH (DIV_ROUND_UP(RADIX_TREE_INDEX_BITS, \
 					  RADIX_TREE_MAP_SHIFT))
 
+/*
+ * @count is the count of every non-NULL element in the ->slots array
+ * whether that is an exceptional entry, a retry entry, a user pointer,
+ * a sibling entry or a pointer to the next level of the tree.
+ * @exceptional is the count of every element in ->slots which is
+ * either radix_tree_exceptional_entry() or is a sibling entry for an
+ * exceptional entry.
+ */
 struct radix_tree_node {
 	unsigned char	shift;		/* Bits remaining in each slot */
 	unsigned char	offset;		/* Slot offset in parent */
@@ -293,6 +301,8 @@ void __radix_tree_replace(struct radix_t
 			  struct radix_tree_node *node,
 			  void **slot, void *item,
 			  radix_tree_update_node_t update_node, void *private);
+void radix_tree_iter_replace(struct radix_tree_root *,
+		const struct radix_tree_iter *, void **slot, void *item);
 void radix_tree_replace_slot(struct radix_tree_root *root,
 			     void **slot, void *item);
 void __radix_tree_delete_node(struct radix_tree_root *root,
@@ -335,6 +345,8 @@ static inline void radix_tree_preload_en
 	preempt_enable();
 }
 
+int radix_tree_split(struct radix_tree_root *, unsigned long index,
+			unsigned new_order);
 int radix_tree_join(struct radix_tree_root *, unsigned long index,
 			unsigned new_order, void *);
 
lib/radix-tree.c renamed from lib/radix-tree.c~radix-tree-add-radix_tree_split +138 -4

185 lines not on this page · raw message

tools/testing/radix-tree/multiorder.c renamed from tools/testing/radix-tree/multiorder.c~radix-tree-add-radix_tree_split +64 -0

74 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

reimplement-idr-and-ida-using-the-radix-tree.patch