mm/memcg: Convert mem_cgroup_charge() to take a folio
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 25 Jun 2021 13:27:04 +0000 (09:27 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:31 +0000 (09:27 -0400)
commit8f425e4ed0eb3ef0b2d85a9efccf947ca6aa9b1c
tree4fb8ccee7ba7f7f6895939375098cc4cdaba2ea7
parent118f2875490b027218594db9e2effb52cebc7693
mm/memcg: Convert mem_cgroup_charge() to take a folio

Convert all callers of mem_cgroup_charge() to call page_folio() on the
page they're currently passing in.  Many of them will be converted to
use folios themselves soon.

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
kernel/events/uprobes.c
mm/filemap.c
mm/huge_memory.c
mm/khugepaged.c
mm/ksm.c
mm/memcontrol.c
mm/memory.c
mm/migrate.c
mm/shmem.c
mm/userfaultfd.c