Re: [PATCH -mm v2 05/11] mm: get unmapped area from VMA tree

From: Michel Lespinasse
Date: Mon Jul 02 2012 - 20:23:07 EST


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 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/