diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index eb6c50cc8880..cee1abf85d72 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1232,7 +1232,12 @@ void __meminit reserve_bootmem_region(phys_addr_t start, phys_addr_t end) | |||
1232 | /* Avoid false-positive PageTail() */ | 1232 | /* Avoid false-positive PageTail() */ |
1233 | INIT_LIST_HEAD(&page->lru); | 1233 | INIT_LIST_HEAD(&page->lru); |
1234 | 1234 | ||
1235 | SetPageReserved(page); | 1235 | /* |
1236 | * no need for atomic set_bit because the struct | ||
1237 | * page is not visible yet so nobody should | ||
1238 | * access it yet. | ||
1239 | */ | ||
1240 | __SetPageReserved(page); | ||
1236 | } | 1241 | } |
1237 | } | 1242 | } |
1238 | } | 1243 | } |
@@ -5508,7 +5513,7 @@ not_early: | |||
5508 | page = pfn_to_page(pfn); | 5513 | page = pfn_to_page(pfn); |
5509 | __init_single_page(page, pfn, zone, nid); | 5514 | __init_single_page(page, pfn, zone, nid); |
5510 | if (context == MEMMAP_HOTPLUG) | 5515 | if (context == MEMMAP_HOTPLUG) |
5511 | SetPageReserved(page); | 5516 | __SetPageReserved(page); |
5512 | 5517 | ||
5513 | /* | 5518 | /* |
5514 | * Mark the block movable so that blocks are reserved for | 5519 | * Mark the block movable so that blocks are reserved for |