]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-exclude-reserved-pages-from-dirtyable-memory-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 2 Dec 2011 03:12:05 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Dec 2011 03:15:35 +0000 (14:15 +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 8961d1946a5d74cc500d4a0a17d7836cf4c2e559..c974b465300d50cd25c48337eb8d2fa2ef6142d5 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