Re: [PATCH v4 22/22] mm/slub: cleanup and repurpose some stat items

Harry Yoo
2026-01-29T07:40:44Z

On Fri, Jan 23, 2026 at 07:53:00AM +0100, Vlastimil Babka wrote:
> A number of stat items related to cpu slabs became unused, remove them.
>
> Two of those were ALLOC_FASTPATH and FREE_FASTPATH. But instead of
> removing those, use them instead of ALLOC_PCS and FREE_PCS, since
> sheaves are the new (and only) fastpaths, Remove the recently added
> _PCS variants instead.
>
> Change where FREE_SLOWPATH is counted so that it only counts freeing of
> objects by slab users that (for whatever reason) do not go to a percpu
> sheaf, and not all (including internal) callers of __slab_free(). Thus
> sheaf flushing (already counted by SHEAF_FLUSH) does not affect
> FREE_SLOWPATH anymore. This matches how ALLOC_SLOWPATH doesn't count
> sheaf refills (counted by SHEAF_REFILL).
>
> Reviewed-by: Hao Li <hao.li@linux.dev>
> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
> ---

Looks good to me,
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>

--
Cheers,
Harry / Hyeonggon