]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/slub: cleanup and repurpose some stat items
authorVlastimil Babka <vbabka@suse.cz>
Fri, 23 Jan 2026 06:53:00 +0000 (07:53 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 29 Jan 2026 08:29:51 +0000 (09:29 +0100)
commit6f1912181ddfcf851a6670b4fa9c7dfdaf3ed46d
treed8ffdc00e67010bcd9871de324bd2f1e82e8de28
parentfb016a5ec70ea9c734bde73ef9e3e82e201f5ab5
mm/slub: cleanup and repurpose some stat items

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>
mm/slub.c