# Re: \[PATCH v14 043/138\] mm/memcg: Convert mem\_cgroup\_migrate() to take folios

- From: Mike Rapoport \<rppt@kernel.org\>
- Date: 2021-07-21 09:48:42 
- List: linux-mm
- Page: https://ratatoskr.run/linux-mm/2021/07/210687
- Thread: https://ratatoskr.run/linux-mm/2021/07/209943/t/3.md

```text
On Thu, Jul 15, 2021 at 04:35:29AM +0100, Matthew Wilcox (Oracle) wrote:
> Convert all callers of mem_cgroup_migrate() to call page_folio() first.
> They all look like they're using head pages already, but this proves it.
> 
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
> Reviewed-by: Christoph Hellwig <hch@lst.de>
> ---
>  include/linux/memcontrol.h |  4 ++--
>  mm/filemap.c               |  4 +++-
>  mm/memcontrol.c            | 35 +++++++++++++++++------------------
>  mm/migrate.c               |  4 +++-
>  mm/shmem.c                 |  5 ++++-
>  5 files changed, 29 insertions(+), 23 deletions(-)

Acked-by: Mike Rapoport <redacted>

```
