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

Matthew Wilcox
2026-04-14T13:18:19Z

On Tue, Apr 14, 2026 at 05:15:17PM +0800, Ye Liu wrote:
> From: Ye Liu <liuye@kylinos.cn>
>
> 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.