rbtree: fix typo in comment of rb_insert_color
authorWei Yang <weiyang@linux.vnet.ibm.com>
Wed, 3 Jan 2018 11:42:27 +0000 (12:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 11:42:27 +0000 (12:42 +0100)
commit7762c2d6f4382776d97446f3fdaa1838443720cb
treeaf35ca1d7781ca44a9c4d72bebdde6ce7fcf10c8
parent5c3b0ccff9c2b8cb36befc003d3c46caca046e6f
rbtree: fix typo in comment of rb_insert_color

In case 1, it passes down the BLACK color from G to p and u, and maintains
the color of n.  By doing so, it maintains the black height of the sub-tree.

While in the comment, it marks the color of n to BLACK.  This is a typo
and not consistents with the code.

This patch fixs this typo in comment.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Acked-by: Michel Lespinasse <walken@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[Linux commit 1b9c53e849aa65776d4f611d99aa09f856518dad]

Ported to Xen for rb_insert_color API.

Signed-off-by: Praveen Kumar <kpraveen.lkml@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/common/rbtree.c