Skip to contentSkip to conversation

maple-tree-use-goto-label-to-simplify-code.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 10, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple tree: use goto label to simplify code
has been removed from the -mm tree. Its filename was
maple-tree-use-goto-label-to-simplify-code.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: Dev Jain <[email protected]>
Subject: maple tree: use goto label to simplify code
Date: Tue, 24 Jun 2025 13:37:48 +0530

Use the underflow goto label to set the status to ma_underflow and return NULL, as is being done elsewhere.

---

 lib/maple_tree.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple-tree-use-goto-label-to-simplify-code +2 -5
@@ -4560,15 +4560,12 @@ again:
 	if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
 		goto retry;
 
-
 	if (likely(entry))
 		return entry;
 
 	if (!empty) {
-		if (mas->index <= min) {
-			mas->status = ma_underflow;
-			return NULL;
-		}
+		if (mas->index <= min)
+			goto underflow;
 
 		goto again;
 	}

_

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

maple-tree-add-some-comments.patch khugepaged-reduce-race-probability-between-migration-and-khugepaged.patch khugepaged-generalize-alloc_charge_folio.patch