Re: [PATCH 3/3] slab: Use get_node() and kmem_cache_node() functions

David Rientjes
2014-06-11T23:15:34Z

On Wed, 11 Jun 2014, Christoph Lameter wrote:

> Use the two functions to simplify the code avoiding numerous explicit
> checks coded checking for a certain node to be online.
>
> Get rid of various repeated calculations of kmem_cache_node structures.
>

You're not bragging about your diffstat that removes more lines than it
removes that show why this change is helpful :)

mm/slab.c | 167 +++++++++++++++++++++++++++++------------------------------------
1 file changed, 77 insertions(+), 90 deletions(-)

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

Acked-by: David Rientjes <rientjes@google.com>