mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04: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:
parent
fcce4672c0
commit
b1baabd995
5 changed files with 20 additions and 17 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue