summaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2021-05-04 23:19:13 +0200
committerMatthew Wilcox (Oracle) <willy@infradead.org>2021-09-27 15:27:32 +0200
commitc5ce619a77ce00d537ef512e7a823c99ce890a40 (patch)
tree07adb45b8d53353efcdee1782a41e3c76772e0b1 /mm/swap.c
parentmm/memcg: Add folio_lruvec_relock_irq() and folio_lruvec_relock_irqsave() (diff)
downloadlinux-c5ce619a77ce00d537ef512e7a823c99ce890a40.tar.xz
linux-c5ce619a77ce00d537ef512e7a823c99ce890a40.zip
mm/workingset: Convert workingset_activation to take a folio
This function already assumed it was being passed a head page. No real change here, except that thp_nr_pages() compiles away on kernels with THP compiled out while folio_nr_pages() is always present. Also convert page_memcg_rcu() to folio_memcg_rcu(). Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: David Howells <dhowells@redhat.com> Acked-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 57791ae80f2e..5c688897c013 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -429,7 +429,7 @@ void mark_page_accessed(struct page *page)
else
__lru_cache_activate_page(page);
ClearPageReferenced(page);
- workingset_activation(page);
+ workingset_activation(page_folio(page));
}
if (page_is_idle(page))
clear_page_idle(page);