# Re: \[PATCH v14 039/138\] mm/memcg: Convert commit\_charge() to take a folio

- From: David Howells \<dhowells@redhat.com\>
- Date: 2021-08-10 20:19:00 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/08/211997
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/4.md

```text
Matthew Wilcox (Oracle) [ref] wrote:

> The memcg_data is only set on the head page, so enforce that by
> typing it as a folio.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> Acked-by: Michal Hocko <mhocko@suse.com>

Reviewed-by: David Howells <dhowells@redhat.com>


```
