No part of these patches should change behaviour; all the called functions already convert from page to folio, so this ought to simply be a reduction in the number of calls to compound_head(). Matthew Wilcox (Oracle) (4): memcg: Convert mem_cgroup_move_charge_pte_range() to use a folio memcg: Return the folio in union mc_target memcg: Use a folio in get_mctgt_type memcg: Use a folio in get_mctgt_type_thp mm/memcontrol.c | 88 ++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 42 deletions(-) -- 2.43.0