]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - mm/memcontrol.c
mm/memcg: Convert uncharge_page() to uncharge_folio()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 30 Jun 2021 01:47:12 +0000 (21:47 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 27 Sep 2021 13:27:31 +0000 (09:27 -0400)
commitc4ed6ebfcb0929d204ab7548496c0d28bd408b36
tree921cf6797a5b6fef9d889575cdf21588ca4cf61c
parent8f425e4ed0eb3ef0b2d85a9efccf947ca6aa9b1c
mm/memcg: Convert uncharge_page() to uncharge_folio()

Use a folio rather than a page to ensure that we're only operating on
base or head pages, and not tail pages.

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