mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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>
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user