From f7986eab8fe20b85b9f69d374725a9b2a228fb9b Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Fri, 21 Sep 2012 10:57:45 +1000 Subject: [PATCH] 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 --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5