aboutsummaryrefslogtreecommitdiff
path: root/mm/swap.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle)2021-06-28 20:00:28 -0400
committerMatthew Wilcox (Oracle)2021-09-27 09:27:31 -0400
commitb1baabd995ab8e830dbf647fe731b51e12b8cedd (patch)
tree28af00ad39b65d707888c40fe48b5a088bdd70dc /mm/swap.c
parentfcce4672c06ad5f6eb9497607ac942490b25d3af (diff)
mm/memcg: Add folio_lruvec()
This replaces mem_cgroup_page_lruvec(). All callers converted. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Mike Rapoport <rppt@linux.ibm.com> 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 5679ce5bc362..65a74c89e7cf 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -293,7 +293,8 @@ void lru_note_cost(struct lruvec *lruvec, bool file, unsigned int nr_pages)
void lru_note_cost_page(struct page *page)
{
- lru_note_cost(mem_cgroup_page_lruvec(page),
+ struct folio *folio = page_folio(page);
+ lru_note_cost(folio_lruvec(folio),
page_is_file_lru(page), thp_nr_pages(page));
}