Re: [PATCH v2 2/9] rbtree: optimize fetching of sibling node

From: Peter Zijlstra
Date: Mon Aug 06 2012 - 10:24:39 EST


On Thu, 2012-08-02 at 15:34 -0700, Michel Lespinasse wrote:

> + tmp = gparent->rb_right;
> + if (parent != tmp) { /* parent == gparent->rb_left */

> + tmp = parent->rb_right;
> + if (node == tmp) {

> + tmp = parent->rb_left;
> + if (node == tmp) {

> + sibling = parent->rb_right;
> + if (node != sibling) { /* node == parent->rb_left */


Half of them got a comment, the other half didn't.. is there any
particular reason for that?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/