From c4cdfb64ebbc4adee405562e2c8083a534915dd7 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 28 Sep 2012 10:19:41 +1000 Subject: [PATCH] memory-hotplug-fix-pages-missed-by-race-rather-than-failng-fix small cleanup Cc: Minchan Kim Signed-off-by: Andrew Morton --- mm/page_isolation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.5