diff --git a/mm/vmscan.c b/mm/vmscan.c index 44f04364a304a8f38084531b36b9fce7b22a1b03..67a4fd4792de87373d0d7e215070397bbcdfd72c 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -657,7 +657,7 @@ static enum page_references page_check_references(struct page *page, return PAGEREF_RECLAIM; if (referenced_ptes) { - if (PageAnon(page)) + if (PageSwapBacked(page)) return PAGEREF_ACTIVATE; /* * All mapped pages start out with page table