[PATCH] radix_tree_extend()

From: Szabolcs Berecz (szabi@mplayerhq.hu)
Date: Sat Feb 08 2003 - 18:37:41 EST


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/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:20 EST