Skip to contentSkip to conversation

maple_tree-convert-bug_on-to-mt_bug_on.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jun 9, 2023

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: convert BUG_ON() to MT_BUG_ON()
has been removed from the -mm tree. Its filename was
maple_tree-convert-bug_on-to-mt_bug_on.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: convert BUG_ON() to MT_BUG_ON()
Date: Thu, 18 May 2023 10:55:16 -0400

Use MT_BUG_ON() to get more information when running with MAPLE_TREE_DEBUG enabled.

---

 lib/maple_tree.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-convert-bug_on-to-mt_bug_on +1 -1
@@ -194,7 +194,7 @@ static void mas_set_height(struct ma_sta
 	unsigned int new_flags = mas->tree->ma_flags;
 
 	new_flags &= ~MT_FLAGS_HEIGHT_MASK;
-	BUG_ON(mas->depth > MAPLE_HEIGHT_MAX);
+	MT_BUG_ON(mas->tree, mas->depth > MAPLE_HEIGHT_MAX);
 	new_flags |= mas->depth << MT_FLAGS_HEIGHT_OFFSET;
 	mas->tree->ma_flags = new_flags;
 }

_

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