The patch titled lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot update has been added to the -mm tree. Its filename is lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot-update.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot update From: Huang Shijie <shijie8@xxxxxxxxx> Signed-off-by: Huang Shijie <shijie8@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/radix-tree.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff -puN lib/radix-tree.c~lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot-update lib/radix-tree.c --- a/lib/radix-tree.c~lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot-update +++ a/lib/radix-tree.c @@ -355,8 +355,8 @@ EXPORT_SYMBOL(radix_tree_insert); * is_slot == 1 : search for the slot. * is_slot == 0 : search for the node. */ -static void * radix_tree_lookup_element(struct radix_tree_root *root, - unsigned long index, int is_slot) +static void *radix_tree_lookup_element(struct radix_tree_root *root, + unsigned long index, int is_slot) { unsigned int height, shift; struct radix_tree_node *node, **slot; @@ -389,25 +389,25 @@ static void * radix_tree_lookup_element( height--; } while (height > 0); - return is_slot ? (void *)slot : node; + return is_slot ? (void *)slot:node; } /** - * radix_tree_lookup_slot - lookup a slot in a radix tree - * @root: radix tree root - * @index: index key + * radix_tree_lookup_slot - lookup a slot in a radix tree + * @root: radix tree root + * @index: index key * - * Returns: the slot corresponding to the position @index in the - * radix tree @root. This is useful for update-if-exists operations. + * Returns: the slot corresponding to the position @index in the + * radix tree @root. This is useful for update-if-exists operations. * - * This function can be called under rcu_read_lock iff the slot is not - * modified by radix_tree_replace_slot, otherwise it must be called - * exclusive from other writers. Any dereference of the slot must be done - * using radix_tree_deref_slot. + * This function can be called under rcu_read_lock iff the slot is not + * modified by radix_tree_replace_slot, otherwise it must be called + * exclusive from other writers. Any dereference of the slot must be done + * using radix_tree_deref_slot. */ void **radix_tree_lookup_slot(struct radix_tree_root *root, unsigned long index) { - return (void**)radix_tree_lookup_element(root, index, 1); + return (void **)radix_tree_lookup_element(root, index, 1); } EXPORT_SYMBOL(radix_tree_lookup_slot); @@ -425,7 +425,7 @@ EXPORT_SYMBOL(radix_tree_lookup_slot); */ void *radix_tree_lookup(struct radix_tree_root *root, unsigned long index) { - return radix_tree_lookup_element(root, index, 0); + return radix_tree_lookup_element(root, index, 0); } EXPORT_SYMBOL(radix_tree_lookup); _ Patches currently in -mm which might be from shijie8@xxxxxxxxx are lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot.patch lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot-update.patch lib-do-code-optimization-for-radix_tree_lookup-and-radix_tree_lookup_slot-checkpatch-fixes.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html