mm/memcg: Convert mem_cgroup_uncharge() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 2 May 2021 00:42:23 +0000 (20:42 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:31 +0000 (09:27 -0400)
commitbbc6b703b21963e909f633cf7718903ed5094319
tree076d76592401f7c5343053c9eaf7ed51e5a8251c
parentc4ed6ebfcb0929d204ab7548496c0d28bd408b36
mm/memcg: Convert mem_cgroup_uncharge() to take a folio

Convert all the callers to call page_folio().  Most of them were already
using a head page, but a few of them I can't prove were, so this may
actually fix a bug.

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>
include/linux/memcontrol.h
mm/filemap.c
mm/khugepaged.c
mm/memcontrol.c
mm/memory-failure.c
mm/memremap.c
mm/page_alloc.c
mm/swap.c