mm: do not use atomic operations when releasing pages
authorMel Gorman <[email protected]>
Wed, 4 Jun 2014 23:10:26 +0000 (16:10 -0700)
committerLinus Torvalds <[email protected]>
Wed, 4 Jun 2014 23:54:09 +0000 (16:54 -0700)
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 <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/swap.c

index 11ebb9714f4962dd250d194704ace7db86443c0b..30b6a37c74af538538a1893d9e45469fa171f56c 100644 (file)
--- 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);
        }