Skip to contentSkip to conversation

maple_tree-index-has-been-checked-to-be-smaller-than-pivot.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 14, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: maple_tree: index has been checked to be smaller than pivot
has been removed from the -mm tree. Its filename was
maple_tree-index-has-been-checked-to-be-smaller-than-pivot.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: Wei Yang <[email protected]>
Subject: maple_tree: index has been checked to be smaller than pivot
Date: Sat, 16 Nov 2024 01:48:03 +0000

Patch series "mas_anode_descend() related cleanup".

Some cleanup related to mas_anode_descend().

This patch (of 3):

At the beginning of loop, it has checked the range is in lower bounds.

---

 lib/maple_tree.c |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
lib/maple_tree.c renamed from lib/maple_tree.c~maple_tree-index-has-been-checked-to-be-smaller-than-pivot +6 -7
@@ -4882,13 +4882,12 @@ static inline bool mas_anode_descend(str
 				found = true;
 				goto done;
 			}
-			if (mas->index <= pivot) {
-				mas->node = mas_slot(mas, slots, offset);
-				mas->min = min;
-				mas->max = pivot;
-				offset = 0;
-				break;
-			}
+
+			mas->node = mas_slot(mas, slots, offset);
+			mas->min = min;
+			mas->max = pivot;
+			offset = 0;
+			break;
 		}
 next_slot:
 		min = pivot + 1;

_

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