Skip to contentSkip to conversation

maple_tree-introduce-maple_copy-node-and-use-it-in-mas_spanning_rebalance.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 24

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: introduce maple_copy node and use it in mas_spanning_rebalance()
has been removed from the -mm tree. Its filename was
maple_tree-introduce-maple_copy-node-and-use-it-in-mas_spanning_rebalance.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: "Liam R. Howlett" <[email protected]>
Subject: maple_tree: introduce maple_copy node and use it in mas_spanning_rebalance()
Date: Fri, 30 Jan 2026 15:59:16 -0500

Introduce an internal-memory only node type called maple_copy to facilitate internal copy operations. Use it in mas_spanning_rebalance() for just the leaf nodes. Initially, the maple_copy node is used to configure the source nodes and copy the data into the big_node.

The maple_copy contains a list of source entries with start and end offsets. One of the maple_copy entries can be itself with an offset of 0 to 2, representing the data where the store partially overwrites entries, or fully overwrites the entry. The side effect is that the source nodes no longer have to worry about partially copying the existing offset if it is not fully overwritten.

This is in preparation of removal of the maple big_node, but for the time being the data is copied to the big node to limit the change size.

Cc Alice Ryhl <[email protected]>
Cc Andrew Ballance <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Christian Kujau <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Kuninori Morimoto <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc SeongJae Park <[email protected]>
Cc Sidhartha Kumar <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Vlastimil Babka <[email protected]>

---

 include/linux/maple_tree.h |   26 ++++++
 lib/maple_tree.c           |  140 ++++++++++++++++++++++++++++++++---
 2 files changed, 157 insertions(+), 9 deletions(-)
include/linux/maple_tree.h renamed from include/linux/maple_tree.h~maple_tree-introduce-maple_copy-node-and-use-it-in-mas_spanning_rebalance +26 -0
@@ -139,6 +139,7 @@ enum maple_type {
 	maple_leaf_64,
 	maple_range_64,
 	maple_arange_64,
+	maple_copy,
 };
 
 enum store_type {
@@ -154,6 +155,30 @@ enum store_type {
 	wr_slot_store,
 };
 
+struct maple_copy {
+	struct {
+		struct maple_node *node;
+		unsigned long max;
+		unsigned char start;
+		unsigned char end;
+		enum maple_type mt;
+	} src[4];
+	/* Simulated node */
+	void __rcu *slot[3];
+	unsigned long min;
+	union {
+		unsigned long pivot[3];
+		struct {
+			void *_pad[2];
+			unsigned long max;
+		};
+	};
+	unsigned char end;
+
+	/*Avoid passing these around */
+	unsigned char s_count;
+};
+
 /**
  * DOC: Maple tree flags
  *
@@ -299,6 +324,7 @@ struct maple_node {
 		};
 		struct maple_range_64 mr64;
 		struct maple_arange_64 ma64;
+		struct maple_copy cp;
 	};
 };
 
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-introduce-maple_copy-node-and-use-it-in-mas_spanning_rebalance +131 -9

186 lines not on this page · raw message

_

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