Gerald Schaefer a70dcb969f memory hotplug: fix page_zone() calculation in test_pages_isolated()
My last bugfix here (adding zone->lock) introduced a new problem: Using
page_zone(pfn_to_page(pfn)) to get the zone after the for() loop is wrong.
 pfn will then be >= end_pfn, which may be in a different zone or not
present at all.  This may lead to an addressing exception in page_zone()
or spin_lock_irqsave().

Now I use __first_valid_page() again after the loop to find a valid page
for page_zone().

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Acked-by: Nathan Fontenot <nfont@austin.ibm.com>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-11-06 15:41:19 -08:00
..
2008-10-20 08:50:26 -07:00
2008-10-23 08:55:02 -07:00
2008-10-20 16:17:42 -07:00
2008-10-30 11:38:47 -07:00
2008-07-28 16:30:21 -07:00
2008-07-28 16:30:21 -07:00
2008-10-30 11:38:47 -07:00
2008-10-20 08:52:40 -07:00
2008-10-30 11:38:47 -07:00
2008-10-09 12:18:27 -07:00
2008-10-20 08:52:32 -07:00
2008-10-30 11:38:46 -07:00
2008-10-20 08:52:32 -07:00