aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2015-05-14 01:01:51 +0000
committerJohannes Weiner <hannes@cmpxchg.org>2015-05-14 01:01:51 +0000
commit1337db5b9806741e8ff5d8878911e64b9a42d9f0 (patch)
treea58cea7c16933466bcf4e69b8f86f51792cec280
parent9c6990f7127ff08863f20bcc3a009807f685c223 (diff)
downloadmm-next-1337db5b9806741e8ff5d8878911e64b9a42d9f0.tar.gz
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 <minchan@kernel.org> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/swap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/swap.c b/mm/swap.c
index c80f30f6f7db8..e980f52186b93 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -805,6 +805,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);