Commit 5576646f authored by Committed by Linus Torvalds
revert "mm: fix-up zone present pages"
Revert commit 7f1290f2 ("mm: fix-up zone present pages") That patch tried to fix a issue when calculating zone->present_pages, but it caused a regression on 32bit systems with HIGHMEM. With that change, reset_zone_present_pages() resets all zone->present_pages to zero, and fixup_zone_present_pages() is called to recalculate zone->present_pages when the boot allocator frees core memory pages into buddy allocator. Because highmem pages are not freed by bootmem allocator, all highmem zones' present_pages becomes zero. Various options for improving the situation are being discussed but for now, let's return to the 3.6 code. Cc: Jianguo Wu <firstname.lastname@example.org> Cc: Jiang Liu <email@example.com> Cc: Petr Tesarik <firstname.lastname@example.org> Cc: "Luck, Tony" <email@example.com> Cc: Mel Gorman <firstname.lastname@example.org> Cc: Yinghai Lu <email@example.com> Cc: Minchan Kim <firstname.lastname@example.org> Cc: Johannes Weiner <email@example.com> Acked-by: David Rientjes <firstname.lastname@example.org> Tested-by: Chris Clayton <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
Showing with 1 addition and 58 deletions