Re: [PATCH v3 03/15] mm/slab: introduce slab_alloc_context
From: Hao Li
Date: Tue Jun 16 2026 - 22:54:00 EST
On Mon, Jun 15, 2026 at 01:54:36PM +0200, Vlastimil Babka (SUSE) wrote:
> Similarly to page allocator's struct alloc_context, introduce a helper
> struct to hold a part of the allocation arguments. This will allow
> reducing the number of parameters in many functions of the
> implementation, and extend them easily if needed.
>
> For now, make it hold the caller address and the originally requested
> allocation size.
>
> Convert alloc_single_from_new_slab(), __slab_alloc_node() and
> ___slab_alloc(). No functional change intended.
>
> Link: https://patch.msgid.link/20260610-slab_alloc_flags-v2-4-7190909db118@xxxxxxxxxx
> Reviewed-by: Harry Yoo (Oracle) <harry@xxxxxxxxxx>
> Reviewed-by: Suren Baghdasaryan <surenb@xxxxxxxxxx>
> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
> ---
Reviewed-by: Hao Li <hao.li@xxxxxxxxx>
--
Thanks,
Hao