From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,zxcvb600870024@gmail.com,johnny1001s000602@gmail.com,akpm@linux-foundation.org
Subject: [merged mm-nonmm-stable] lib-rbtreec-fix-the-example-typo.patch removed from -mm tree
Date: Sun, 11 May 2025 17:55:42 -0700 [thread overview]
Message-ID: <20250512005543.337D4C4CEE4@smtp.kernel.org> (raw)
The quilt patch titled
Subject: lib/rbtree.c: fix the example typo
has been removed from the -mm tree. Its filename was
lib-rbtreec-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: Chisheng Chen <johnny1001s000602@gmail.com>
Subject: lib/rbtree.c: fix the example typo
Date: Thu, 3 Apr 2025 19:26:14 +0800
Replace `sr` with `Sr`. The condition `!tmp1 || rb_is_black(tmp1)`
ensures that `tmp1` (which is `sibling->rb_right`) is either NULL or a
black node. Therefore, the right child of the sibling must be black, and
the example should use `Sr` instead of `sr`.
Link: https://lkml.kernel.org/r/20250403112614.570140-1-johnny1001s000602@gmail.com
Signed-off-by: Chisheng Chen <johnny1001s000602@gmail.com>
Cc: Hsin Chang Yu <zxcvb600870024@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/rbtree.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/lib/rbtree.c~lib-rbtreec-fix-the-example-typo
+++ a/lib/rbtree.c
@@ -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 johnny1001s000602@gmail.com are
reply other threads:[~2025-05-12 0:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250512005543.337D4C4CEE4@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=johnny1001s000602@gmail.com \
--cc=mm-commits@vger.kernel.org \
--cc=zxcvb600870024@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.