]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] memory hotplug prep: fixup bad_range()
authorDave Hansen <haveblue@us.ibm.com>
Sun, 30 Oct 2005 01:16:52 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:44 +0000 (21:40 -0700)
commitc6a57e19e464db118dc4ab9cfe9e9748c6d630a0
tree1be192e4c0635c9aa49c8c76d1606e606ecdc9a0
parent4ca644d970bf2542623228a4624af356d20ca267
[PATCH] memory hotplug prep: fixup bad_range()

When doing memory hotplug operations, the size of existing zones can obviously
change.  This means that zone->zone_{start_pfn,spanned_pages} can change.

There are currently no locks that protect these structure members.  However,
they are rarely accessed at runtime.  Outside of swsusp, the only place that I
can find is bad_range().

So, split bad_range() up into two pieces: one that needs to be locked and
anther that doesn't.

Signed-off-by: Dave Hansen <haveblue@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c