From: Andrew Morton Date: Fri, 2 Dec 2011 03:12:05 +0000 (+1100) Subject: mm-exclude-reserved-pages-from-dirtyable-memory-fix X-Git-Tag: next-20111206~1^2~137 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d8dc82ee190d08a91052b9fbf693a5267c09c4d0;p=karo-tx-linux.git 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 --- 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