diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-06-29 02:00:28 +0200 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-09-27 15:27:31 +0200 |
commit | b1baabd995ab8e830dbf647fe731b51e12b8cedd (patch) | |
tree | 28af00ad39b65d707888c40fe48b5a088bdd70dc /mm/workingset.c | |
parent | mm/memcg: Convert mem_cgroup_move_account() to use a folio (diff) | |
download | linux-b1baabd995ab8e830dbf647fe731b51e12b8cedd.tar.xz linux-b1baabd995ab8e830dbf647fe731b51e12b8cedd.zip |
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/workingset.c')
-rw-r--r-- | mm/workingset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/workingset.c b/mm/workingset.c index d5b81e4f4cbe..3deb408a240d 100644 --- a/mm/workingset.c +++ b/mm/workingset.c @@ -397,6 +397,7 @@ out: */ void workingset_activation(struct page *page) { + struct folio *folio = page_folio(page); struct mem_cgroup *memcg; struct lruvec *lruvec; @@ -411,7 +412,7 @@ void workingset_activation(struct page *page) memcg = page_memcg_rcu(page); if (!mem_cgroup_disabled() && !memcg) goto out; - lruvec = mem_cgroup_page_lruvec(page); + lruvec = folio_lruvec(folio); workingset_age_nonresident(lruvec, thp_nr_pages(page)); out: rcu_read_unlock(); |