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-Tag: v4.9.8~6270^2~16^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3741b506c5088fa8c911bb5884c430f770fb49d;p=platform%2Fkernel%2Flinux-rpi3.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 11ebb97..30b6a37 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); }