]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memory-hotplug-fix-pages-missed-by-race-rather-than-failng-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Sep 2012 00:19:41 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 8 Oct 2012 03:00:10 +0000 (14:00 +1100)
small cleanup

Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_isolation.c

index c7445d1e1ccf1821049756f86839b15dcc95ee2f..5f34a9053ce0028d275fef67a07837166138dd54 100644 (file)
@@ -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);
                        }