]> 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, 21 Sep 2012 00:57:49 +0000 (10:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Sep 2012 05:58:54 +0000 (15:58 +1000)
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);
                        }