]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/memcg: Add folio_memcg() and related functions
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 28 Jun 2021 18:59:26 +0000 (14:59 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 13 Aug 2021 23:09:13 +0000 (19:09 -0400)
commit91c755d723c54ad604a3fc3debd776cdb9db27af
treebbf5113715d15e121d5d8cf4c0841fe8f2e1d1c8
parent6046d958c78996bb8a4f6278edb9cc812bcb0648
mm/memcg: Add folio_memcg() and related functions

memcg information is only stored in the head page, so the memcg
subsystem needs to assure that all accesses are to the head page.
The first step is converting page_memcg() to folio_memcg().

The callers of page_memcg() and PageMemcgKmem() are not yet ready to be
converted to use folios, so retain them as wrappers around folio_memcg()
and folio_memcg_kmem().  They will be converted in a later patch set.

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>
include/linux/memcontrol.h
mm/memcontrol.c