Message ID | 1374101277-7915-66-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 7d77c57..7708f66 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -6056,6 +6056,10 @@ __offline_isolated_pages(unsigned long start_pfn, unsigned long end_pfn) list_del(&page->lru); rmv_page_order(page); zone->free_area[order].nr_free--; +#ifdef CONFIG_HIGHMEM + if (PageHighMem(page)) + totalhigh_pages -= 1 << order; +#endif for (i = 0; i < (1 << order); i++) SetPageReserved((page+i)); pfn += (1 << order);