From: Christoph Lameter Date: Tue, 6 Sep 2005 22:16:46 +0000 (-0700) Subject: [PATCH] radix-tree: Remove unnecessary indirections and clean up code X-Git-Tag: v2.6.14-rc1~720 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201b6264ff3865090747f58f48e087c3a35e0dbc;p=pandora-kernel.git [PATCH] radix-tree: Remove unnecessary indirections and clean up code - There is frequent use of indirections in the radix code. This patch removes those indirections, makes the code more readable and allows the compilers to generate better code. - Removing indirections allows the removal of several casts. - Removing indirections allows the reduction of the radix_tree_path size from 3 to 2 words. - Use pathp-> consistently. - Remove unnecessary tmp variable in radix_tree_insert - Separate the upper layer processing from the lowest layer in __lookup() in order to make it easier to understand what is going on and allow compilers to generate better code for the loop. Signed-off-by: Christoph Lameter Cc: Nick Piggin Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed