RE:(2) [PATCH 1/2] mm/huge_memory: set memcg_data before a split page leaves the folio
From: Daejun Park
Date: Wed Nov 04 2026 - 20:50:55 EST
On Wed Nov 4, 2026 at 11:33 AM EST, Zi Yan wrote:
> Assign memcg data before clear_compound_head(), so lockless,
> reference-free readers get the right value instead of bogus data from
> the overlaid ->_nr_pages in the first tail page.
Thanks, agreed. Your wording says why the assignment has to come before
clear_compound_head(), which my comment left implicit.
Thanks,
Daejun