Re: [PATCH] mm/slub.c: freelist is ensured to be NULL when new_slab() fails

From: David Rientjes
Date: Wed Jan 02 2019 - 16:44:02 EST


On Sat, 29 Dec 2018, Peng Wang wrote:

> new_slab_objects() will return immediately if freelist is not NULL.
>
> if (freelist)
> return freelist;
>
> One more assignment operation could be avoided.
>
> Signed-off-by: Peng Wang <rocking@xxxxxxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>