]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-cma-discard-clean-pages-during-contiguous-allocation-instead-of-migration-fix
authorMinchan Kim <minchan@kernel.org>
Fri, 28 Sep 2012 00:19:37 +0000 (10:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Oct 2012 05:03:25 +0000 (15:03 +1000)
It is possible for pages to be dirty after the check
in reclaim_clean_pages_from_list so that it ends up
paging out the pages, which is never what we want for speed up.

This patch fixes it.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Michal Nazarewicz <mina86@mina86.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index f8f56f8bc9c799e197ce1a09414b5bf979d55857..1ee4b69a28a5e9eea1cdb2c2761867e192233262 100644 (file)
@@ -694,7 +694,7 @@ static unsigned long shrink_page_list(struct list_head *page_list,
                struct address_space *mapping;
                struct page *page;
                int may_enter_fs;
-               enum page_references references = PAGEREF_RECLAIM;
+               enum page_references references = PAGEREF_RECLAIM_CLEAN;
 
                cond_resched();