From: Minchan Kim Date: Fri, 21 Sep 2012 00:57:45 +0000 (+1000) Subject: mm-cma-discard-clean-pages-during-contiguous-allocation-instead-of-migration-fix X-Git-Tag: next-20120921~6^2~237 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f7986eab8fe20b85b9f69d374725a9b2a228fb9b;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();