From: Andrew Morton Date: Fri, 21 Sep 2012 00:57:49 +0000 (+1000) Subject: memory-hotplug-fix-pages-missed-by-race-rather-than-failng-fix X-Git-Tag: next-20120921~6^2~225 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7cc277590124a745c186485858e99e512f046290;p=karo-tx-linux.git memory-hotplug-fix-pages-missed-by-race-rather-than-failng-fix small cleanup Cc: Minchan Kim Signed-off-by: Andrew Morton --- diff --git a/mm/page_isolation.c b/mm/page_isolation.c index c7445d1e1ccf..5f34a9053ce0 100644 --- a/mm/page_isolation.c +++ b/mm/page_isolation.c @@ -209,8 +209,9 @@ __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn) * MIGRATE_ISOLATE list. */ if (get_freepage_migratetype(page) != MIGRATE_ISOLATE) { - struct page *end_page = page + - (1 << page_order(page)) - 1; + struct page *end_page; + + end_page = page + (1 << page_order(page)) - 1; move_freepages(page_zone(page), page, end_page, MIGRATE_ISOLATE); }