aboutsummaryrefslogtreecommitdiff
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2015-06-10 10:09:53 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2015-06-10 10:09:53 +1000
commit5c1c3ca9eac2c905baea502870cc2c1b4b772c74 (patch)
tree4dd239098b0bd477257f03c5fb605d54eeb01f2f /mm/page_alloc.c
parentbff035eb34b09a94707a9cf1921e51404726a664 (diff)
mm: meminit: Reduce number of times pageblocks are set during struct page init -fix
The patch "mm: meminit: Reduce number of times pageblocks are set during struct page init" is setting a pageblock before the page is initialised. This is a fix for the mmotm patch mm-meminit-reduce-number-of-times-pageblocks-are-set-during-struct-page-init.patch Signed-off-by: Mel Gorman <mgorman@suse.de> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r--mm/page_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index eb1d96f2b5a1..5c4a70cbaf1f 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -4546,8 +4546,8 @@ void __meminit memmap_init_zone(unsigned long size, int nid, unsigned long zone,
if (!(pfn & (pageblock_nr_pages - 1))) {
struct page *page = pfn_to_page(pfn);
- set_pageblock_migratetype(page, MIGRATE_MOVABLE);
__init_single_page(page, pfn, zone, nid);
+ set_pageblock_migratetype(page, MIGRATE_MOVABLE);
} else {
__init_single_pfn(pfn, zone, nid);
}