Skip to contentSkip to conversation

maple_tree-use-cached-node-end-in-mas_destroy.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 12, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: use cached node end in mas_destroy()
has been removed from the -mm tree. Its filename was
maple_tree-use-cached-node-end-in-mas_destroy.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: use cached node end in mas_destroy()
Date: Wed, 1 Nov 2023 13:16:23 -0400

The node end is set during the walk, so use the resulting end instead of re-fetching it.

---

 lib/maple_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-use-cached-node-end-in-mas_destroy +1 -1
@@ -5576,7 +5576,7 @@ void mas_destroy(struct ma_state *mas)
 
 		mas_start(mas);
 		mtree_range_walk(mas);
-		end = mas_data_end(mas) + 1;
+		end = mas->end + 1;
 		if (end < mt_min_slot_count(mas->node) - 1)
 			mas_destroy_rebalance(mas, end);
 

_

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