From ed46beea6813913bf30de95ed0a96f48c7ea4799 Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Thu, 22 Oct 2015 09:03:48 +1100 Subject: [PATCH] mm: lru_deactivate_fn should clear PG_referenced deactivate_page aims for accelerate for reclaiming through moving pages from active list to inactive list so we should clear PG_referenced for the goal. Signed-off-by: Minchan Kim Suggested-by: Andrew Morton Signed-off-by: Andrew Morton --- mm/swap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/swap.c b/mm/swap.c index 7877fbaed809..674e2c93da4e 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -565,6 +565,7 @@ static void lru_deactivate_fn(struct page *page, struct lruvec *lruvec, del_page_from_lru_list(page, lruvec, lru + LRU_ACTIVE); ClearPageActive(page); + ClearPageReferenced(page); add_page_to_lru_list(page, lruvec, lru); __count_vm_event(PGDEACTIVATE); -- 2.39.5