Re: [PATCH RFC 09/13] mm/huge_memory: move memcg switch into the file split helper
"Zi Yan" <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.kernel.mm |
|---|---|
| Message-ID | <[email protected]> |
On Fri Aug 7, 2026 at 5:17 PM EDT, Kairui Song via B4 Relay wrote: > From: Kairui Song <[email protected]> > > The xarray node allocations in __folio_freeze_split_unmap_file() need > to be charged to the folio's memcg, so move the memcg switch from > __folio_split() into the helper. > > The anon split helper and the after-split folio freeing perform no > chargeable allocations, so no memcg handling is left in __folio_split(). > Rename its out_no_memcg label to out. > > Signed-off-by: Kairui Song <[email protected]> > --- > mm/huge_memory.c | 36 +++++++++++++++++++----------------- > 1 file changed, 19 insertions(+), 17 deletions(-) > Yeah, it should not change anon accounting. Acked-by: Zi Yan <[email protected]> -- Best Regards, Yan, Zi