Skip to contentSkip to conversation

fix-the-example-typo.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jul 5, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib/rbtree.c: fix the example typo
has been removed from the -mm tree. Its filename was
fix-the-example-typo.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Hsin Chang Yu <[email protected]>
Subject: lib/rbtree.c: fix the example typo
Date: Fri, 28 Jun 2024 22:22:29 +0800

Replace the "Sr" with "sr", the example is wrong if sl and N don't have child nodes, so sr should be red node.

---

 lib/rbtree.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
lib/rbtree.c renamed from lib/rbtree.c~fix-the-example-typo +4 -4
@@ -297,9 +297,9 @@ ____rb_erase_color(struct rb_node *paren
 				 *   / \           / \
 				 *  N   S    -->  N   sl
 				 *     / \             \
-				 *    sl  Sr            S
+				 *    sl  sr            S
 				 *                       \
-				 *                        Sr
+				 *                        sr
 				 *
 				 * Note: p might be red, and then both
 				 * p and sl are red after rotation(which
@@ -312,9 +312,9 @@ ____rb_erase_color(struct rb_node *paren
 				 *   / \            /  \
 				 *  N   sl   -->   P    S
 				 *       \        /      \
-				 *        S      N        Sr
+				 *        S      N        sr
 				 *         \
-				 *          Sr
+				 *          sr
 				 */
 				tmp1 = tmp2->rb_right;
 				WRITE_ONCE(sibling->rb_left, tmp1);

_

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