[PATCH] radix_tree_extend()

Szabolcs Berecz (szabi@mplayerhq.hu)
Sun, 9 Feb 2003 00:37:41 +0100 (CET)


No need to check root->rnode in the loop. In the loop it remains nonzero.

Where should I send this patch?

Bye,
Szabi

--- linux-2.5.59/lib/radix-tree.c.orig Sat Jan 25 19:28:22 2003
+++ linux-2.5.59/lib/radix-tree.c Sat Feb 8 22:24:16 2003
@@ -154,8 +154,7 @@

/* Increase the height. */
node->slots[0] = root->rnode;
- if (root->rnode)
- node->count = 1;
+ node->count = 1;
root->rnode = node;
root->height++;
} while (height > root->height);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/