The patch titled Subject: lib/rbtree.c: fix the example typo has been added to the -mm mm-nonmm-unstable branch. Its filename is fix-the-example-typo.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fix-the-example-typo.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Hsin Chang Yu <zxcvb600870024@xxxxxxxxx> 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. Link: https://lkml.kernel.org/r/20240628142229.69419-1-zxcvb600870024@xxxxxxxxx Signed-off-by: Hsin Chang Yu <zxcvb600870024@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/rbtree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/lib/rbtree.c~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 zxcvb600870024@xxxxxxxxx are fix-the-example-typo.patch