Re: [PATCH for-next v3 2/7] mm/slab: pass free_flags to slab_free_hook()
From: Vlastimil Babka (SUSE)
Date: Wed Nov 18 2026 - 10:21:57 EST
On 11/15/26 16:09, Harry Yoo (Meta) wrote:
> slab_free_hook() takes two bools, init and after_rcu_delay, and a later
> patch needs to tell it whether spinning is allowed.
>
> Instead of adding a third bool, make it take free_flags. Add
> SLAB_FREE_INIT and SLAB_FREE_AFTER_RCU_DELAY, and convert the callers.
>
> No functional change intended.
>
> Suggested-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
> Link: https://lore.kernel.org/f31885cd-57c2-428d-9760-a76a0137f989@xxxxxxxxxx
> Signed-off-by: Harry Yoo (Meta) <harry@xxxxxxxxxx>
LGTM.
Reviewed-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>