From: Minchan Kim Date: Fri, 28 Sep 2012 00:19:37 +0000 (+1000) Subject: mm-cma-discard-clean-pages-during-contiguous-allocation-instead-of-migration-fix X-Git-Tag: next-20121004~1^2~270 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=91ebdeac5af8990372efe10aa56d63bbfb59b7df;p=karo-tx-linux.git mm-cma-discard-clean-pages-during-contiguous-allocation-instead-of-migration-fix 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 Cc: Mel Gorman Cc: Mel Gorman Cc: Marek Szyprowski Cc: Michal Nazarewicz Cc: Rik van Riel Cc: Kyungmin Park Signed-off-by: Andrew Morton --- diff --git a/mm/vmscan.c b/mm/vmscan.c index f8f56f8bc9c7..1ee4b69a28a5 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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();