Re: [PATCH] slab: remove unused SL_CPU slab_stat_type
From: Hao Li
Date: Thu Jul 02 2026 - 02:28:58 EST
On Wed, Jul 01, 2026 at 02:06:33PM +0000, Seongjun Hong wrote:
> Since the removal of the per-cpu slab in commit 32c894c7274b ("slab:
> remove struct kmem_cache_cpu"), show_slab_objects() no longer has a
> branch handling SO_CPU, so cpu_slabs_show() always produces "0".
>
> Emit "0\n" directly instead, matching the sibling cpu_partial and
> slabs_cpu_partial stubs, and remove the now-unused SO_CPU macro and
> SL_CPU enum value.
>
> No functional change intended; the cpu_slabs sysfs attribute continues
> to read 0.
>
> Signed-off-by: Seongjun Hong <hsj0512@xxxxxxxxx>
> ---
Reviewed-by: Hao Li <hao.li@xxxxxxxxx>
--
Thanks,
Hao