On Fri, Jun 29, 2012 at 6:33 PM, Michel Lespinasse <walken@xxxxxxxxxx> wrote: > if (!found_here) { // or if(!addr) or whatever > struct rb_node *rb_prev = NULL; > do { > if (rb_node != rb_prev && Gah, that last line was meant to be if (rb_node->rb_right != rb_prev && > node_free_gap(rb_node->rb_right) >= len) { > rb_node = rb_node->rb_right; > break; > } > rb_prev = rb_node; > rb_node = rb_parent(rb_node); > } while (rb_node); > continue; > } -- Michel "Walken" Lespinasse A program is never fully debugged until the last user dies. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>