Re: [PATCH 1/3] mm/slab: use list_first_entry_or_null()

Christoph Lameter
2015-12-02T15:57:13Z

On Wed, 2 Dec 2015, Geliang Tang wrote:

> Simplify the code with list_first_entry_or_null().

Looks like there are two code snippets here in slab.c that
could become a function or so. So this could be improved upon by creating
a function called get_first_slab() or so.

Acked-by: Christoph Lameter <cl@linux.com>