summaryrefslogtreecommitdiffstats
path: root/kernel/slow-work.c
diff options
context:
space:
mode:
authorHuang Shijie <shijie8@gmail.com>2009-06-17 00:33:42 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-17 04:47:49 +0200
commitb72b71c6cb6ecc564d4d5f9c512a7df269837846 (patch)
tree9923a6e1d59f92825df87cfd2bbd613d0f47a5f7 /kernel/slow-work.c
parentgroups: move code to kernel/groups.c (diff)
downloadlinux-b72b71c6cb6ecc564d4d5f9c512a7df269837846.tar.xz
linux-b72b71c6cb6ecc564d4d5f9c512a7df269837846.zip
lib: do code optimization for radix_tree_lookup() and radix_tree_lookup_slot()
radix_tree_lookup() and radix_tree_lookup_slot() have much the same code except for the return value. Introduce radix_tree_lookup_element() to do the real work. /* * 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); Signed-off-by: Huang Shijie <shijie8@gmail.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Cc: Christoph Lameter <cl@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/slow-work.c')
0 files changed, 0 insertions, 0 deletions