[PATCH] alloc_kmemlist: Some cleanup in preparation for a real memory leak fix
authorChristoph Lameter <clameter@sgi.com>
Sat, 25 Mar 2006 11:06:46 +0000 (03:06 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:50 +0000 (08:22 -0800)
commitcafeb02e098ecd58fb0bd797b2c9fbba3edf54f8
treef4d03a748184e24cb0ff4c9a56ba6b0eaefd78d3
parente00946fe2351307eb3eda7a3343530f6d2d1af2e
[PATCH] alloc_kmemlist: Some cleanup in preparation for a real memory leak fix

Inspired by Jesper Juhl's patch from today

1. Get rid of err
We do not set it to anything else but zero.

2. Drop the CONFIG_NUMA stuff.
There are definitions for alloc_alien_cache and free_alien_cache()
that do the right thing for the non NUMA case.

3. Better naming of variables.

4. Remove redundant cachep->nodelists[node] expressions.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c