]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-memory-hotplug-fix-lowmem-count-overflow-when-offline-pages-fix
authorMichal Hocko <mhocko@suse.cz>
Wed, 19 Jun 2013 00:06:14 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:09 +0000 (17:13 +1000)
Fix CONFIG_HIGHMEM=n build

Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c

index 6f623f6d5c84d321adc61d07569a13d2e4572ec6..d711dcdda36275d82c09e7d72267ad00586d41ff 100644 (file)
@@ -6185,8 +6185,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);