Re: [PATCH v2 1/2] mm/huge_memory: use folio's memcg inside __folio_split()
Baolin Wang <[email protected]> Mon, 3 Aug 2026 10:39:49 +0800
| Newsgroups | org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kvack.linux-mm |
|---|---|
| Message-ID | <[email protected]> |
On 7/31/26 10:18 AM, Zi Yan wrote: > During a pagecache folio split, an xarray node allocation can happen and > needs to charge at folio's memcg instead of folio split invoker's memcg, > because for example folio split can happen during reclaim and reclaim's > active memcg might not be folio's memcg. Switch to folio's memcg at the > beginning and switch back afterwards. > > Suggested-by: Johannes Weiner <[email protected]> > Fixes: 6b24ca4a1a8d4 ("mm: Use multi-index entries in the page cache") > Signed-off-by: Zi Yan <[email protected]> > --- LGTM. Reviewed-by: Baolin Wang <[email protected]>