]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-exclude-reserved-pages-from-dirtyable-memory-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 8 Dec 2011 04:41:48 +0000 (15:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 12 Dec 2011 04:18:58 +0000 (15:18 +1100)
fix highmem build

Cc: Chris Mason <chris.mason@oracle.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Minchan Kim <minchan.kim@gmail.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Shaohua Li <shaohua.li@intel.com>
Cc: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c

index f2d6920ebaf25d00161e6033a13ecf73b6989747..189263f40b06057352ab382dc8a91b2663693a65 100644 (file)
@@ -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