Re: [PATCH v3 08/10] mm, slab: remove remaining compile-time checks for CONFIG_SLUB_TINY
From: Harry Yoo
Date: Tue Nov 10 2026 - 09:31:18 EST
On Thu, Nov 05, 2026 at 09:43:57AM +0100, Vlastimil Babka (SUSE) wrote:
> Remove several minor aspect of CONFIG_SLUB_TINY to allow it to be fully
> a boot-time decision:
>
> - remove check in cache_has_sheaves(), with no change to functionality
> but only on code elimination
>
> - remove SLAB_SUPPORTS_SYSFS dependency on !CONFIG_SLUB_TINY, thus
> /sys/kernel/slab will exist as long as CONFIG_SYSFS is enabled
> (for now leave SLAB_SUPPORTS_SYSFS around, can be cleaned up later)
>
> - remove the control of __fastpath_inline so it's just a wrapper of
> __always_inline. Leave it also around for documenting the intent, can
> be revisited later.
>
> - remove a comment for SLAB_NO_MERGE as we don't want new checks for
> CONFIG_SLUB_TINY
>
> This leaves the only usage of CONFIG_SLUB_TINY in slab code to set the
> value of slab_tiny_enabled around.
>
> net/core/skbuff.c keeps using it to control SLAB_NO_MERGE but that can
> be dealt with independently after the config is deprecated.
>
> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
> ---
Looks good to me,
Reviewed-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>
--
Cheers,
Harry / Hyeonggon