Skip to contentSkip to conversation

maple_tree-make-mas_erase-more-robust.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: make mas_erase() more robust
has been removed from the -mm tree. Its filename was
maple_tree-make-mas_erase-more-robust.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: make mas_erase() more robust
Date: Wed, 1 Nov 2023 13:16:19 -0400

mas_erase() may not deal correctly with all maple states. Make the function more robust by ensuring the state is in one of the two acceptable states.

---

 lib/maple_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-make-mas_erase-more-robust +1 -1
@@ -6173,7 +6173,7 @@ void *mas_erase(struct ma_state *mas)
 	void *entry;
 	MA_WR_STATE(wr_mas, mas, NULL);
 
-	if (mas_is_none(mas) || mas_is_paused(mas))
+	if (!mas_is_active(mas) || !mas_is_start(mas))
 		mas->node = MAS_START;
 
 	/* Retry unnecessary when holding the write lock. */

_

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