From f4a5135c507e8b3127217a175d90e7ed2e0e502d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 8 Dec 2011 15:41:48 +1100 Subject: [PATCH] mm-exclude-reserved-pages-from-dirtyable-memory-fix fix highmem build Cc: Chris Mason Cc: Christoph Hellwig Cc: Dave Chinner Cc: Jan Kara Cc: Johannes Weiner Cc: KAMEZAWA Hiroyuki Cc: Mel Gorman Cc: Michal Hocko Cc: Minchan Kim Cc: Rik van Riel Cc: Shaohua Li Cc: Wu Fengguang Signed-off-by: Andrew Morton --- mm/page-writeback.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/page-writeback.c b/mm/page-writeback.c index f2d6920ebaf2..189263f40b06 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -157,8 +157,7 @@ static unsigned long highmem_dirtyable_memory(unsigned long total) &NODE_DATA(node)->node_zones[ZONE_HIGHMEM]; x += zone_page_state(z, NR_FREE_PAGES) + - zone_reclaimable_pages(z) - - zone->dirty_balance_reserve; + zone_reclaimable_pages(z) - z->dirty_balance_reserve; } /* * Make sure that the number of highmem pages is never larger -- 2.39.5