From: Mel Gorman Date: Wed, 4 Jun 2014 23:10:26 +0000 (-0700) Subject: mm: do not use atomic operations when releasing pages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e3741b506c5088fa8c911bb5884c430f770fb49d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mm: do not use atomic operations when releasing pages There should be no references to it any more and a parallel mark should not be reordered against us. Use non-locked varient to clear page active. Signed-off-by: Mel Gorman Acked-by: Rik van Riel Cc: Johannes Weiner Cc: Vlastimil Babka Cc: Jan Kara Cc: Michal Hocko Cc: Hugh Dickins Cc: Dave Hansen Cc: Theodore Ts'o Cc: "Paul E. McKenney" Cc: Oleg Nesterov Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/swap.c b/mm/swap.c index 11ebb9714f49..30b6a37c74af 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -901,7 +901,7 @@ void release_pages(struct page **pages, int nr, bool cold) } /* Clear Active bit in case of parallel mark_page_accessed */ - ClearPageActive(page); + __ClearPageActive(page); list_add(&page->lru, &pages_to_free); }