]> bbs.cooldavid.org Git - net-next-2.6.git/commit - mm/percpu.c
percpu: don't put the first chunk in reverse-map rbtree
authorTejun Heo <tj@kernel.org>
Thu, 2 Apr 2009 04:19:54 +0000 (13:19 +0900)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Apr 2009 16:31:30 +0000 (18:31 +0200)
commitae9e6bc9f74f8247cbca50a6a93c80e0d686fa19
tree6644b5ea22c27b78d9c062186e77fb9d56468090
parent577c9c456f0e1371cbade38eaf91ae8e8a308555
percpu: don't put the first chunk in reverse-map rbtree

Impact: both first chunks don't use rbtree, no functional change

There can be two first chunks - reserved and dynamic with the former
one being optional.  Dynamic first chunk was linked on reverse-mapping
rbtree while the reserved one was mapped manually using the start
address and reserved offset limit.

This patch makes both first chunks to be looked up manually without
using the rbtree.  This is to help getting rid of the rbtree.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: rusty@rustcorp.com.au
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: rmk@arm.linux.org.uk
Cc: starvik@axis.com
Cc: ralf@linux-mips.org
Cc: davem@davemloft.net
Cc: cooloney@kernel.org
Cc: kyle@mcmartin.ca
Cc: matthew@wil.cx
Cc: grundler@parisc-linux.org
Cc: takata@linux-m32r.org
Cc: benh@kernel.crashing.org
Cc: rth@twiddle.net
Cc: ink@jurassic.park.msu.ru
Cc: heiko.carstens@de.ibm.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Christoph Lameter <cl@linux.com>
LKML-Reference: <49D43CEA.3040609@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
mm/percpu.c