summaryrefslogtreecommitdiffstats
path: root/lib/idr.c
diff options
context:
space:
mode:
authorJie Chen2016-12-13 01:46:17 +0100
committerLinus Torvalds2016-12-13 03:55:09 +0100
commitce093a04543c403d52c1a5788d8cb92e47453aba (patch)
tree4f0dbd7ab08c3110cc45f2ce94662ea3e561c00c /lib/idr.c
parentlib/Kconfig.debug: make CONFIG_STRICT_DEVMEM depend on CONFIG_DEVMEM (diff)
downloadkernel-qcow2-linux-ce093a04543c403d52c1a5788d8cb92e47453aba.tar.gz
kernel-qcow2-linux-ce093a04543c403d52c1a5788d8cb92e47453aba.tar.xz
kernel-qcow2-linux-ce093a04543c403d52c1a5788d8cb92e47453aba.zip
lib/rbtree.c: fix typo in comment of ____rb_erase_color
In Case 3 of `sibling == parent->rb_right': Right rotation will not change color of sl and S in the diagram (i.e. should not change "sl" to "Sl", "S" to "s") In Case 3 of `sibling == parent->rb_left': (p) (p) / \ / \ S N --> sr N / \ / Sl sr S / Sl This is actually left rotation at "S", not right rotation. In Case 4 of `sibling == parent->rb_left': (p) (s) / \ / \ S N --> Sl P / \ / \ sl (sr) (sr) N This is actually right rotation at "(p)" + color flips, not left rotation + color flips. Link: http://lkml.kernel.org/r/1472391115-3702-1-git-send-email-fykcee1@gmail.com Signed-off-by: Jie Chen <fykcee1@gmail.com> Cc: Wei Yang <weiyang@linux.vnet.ibm.com> Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions