]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit751e2941abed8c1bf2fd6dd6510a1112a72f9e72
treef4d03a748184e24cb0ff4c9a56ba6b0eaefd78d3
parentbd4e8f788cbe64d4bf06b75cb2862354a9cbb488
[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