Re: [PATCH v2 2/5] mm/sl[au]b: unify __ksize()

From: Vlastimil Babka
Date: Fri Mar 04 2022 - 13:25:55 EST


On 3/4/22 07:34, Hyeonggon Yoo wrote:
> Now that SLAB passes large requests to page allocator like SLUB,
> Unify __ksize(). Only SLOB need to implement own version of __ksize()
> because it stores size in object header for kmalloc objects.
>
> Signed-off-by: Hyeonggon Yoo <42.hyeyoo@xxxxxxxxx>

Reviewed-by: Vlastimil Babka <vbabka@xxxxxxx>

As discussed, we can be more specific about the !folio_test_slab() case, but
that can be done on top.