Re: [PATCH 0/4] mm/vmstat: simplify folio stat APIs

From: Matthew Wilcox

Date: Tue Apr 14 2026 - 09:23:57 EST


On Tue, Apr 14, 2026 at 05:15:17PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@xxxxxxxxxx>
>
> This series simplifies folio statistics accounting by:
> 1. Replacing node_stat_mod_folio/zone_stat_mod_folio with more semantic
> add_folio/sub_folio functions
> 2. Removing unused __node_stat_* and __zone_stat_* wrapper functions

I'm not convinced this is the right approach. We've often computed
folio_nr_pages() for use by several different functions, and you're
making us recompute it.