[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.1901021343450.69024@chino.kir.corp.google.com>
Date: Wed, 2 Jan 2019 13:43:57 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Peng Wang <rocking@....edu.cn>
cc: cl@...ux.com, penberg@...nel.org, iamjoonsoo.kim@....com,
akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mm/slub.c: freelist is ensured to be NULL when new_slab()
fails
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@....edu.cn>
Acked-by: David Rientjes <rientjes@...gle.com>
Powered by blists - more mailing lists