]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Remove node check in slab_free
authorChristoph Lameter <cl@linux.com>
Tue, 17 May 2011 21:29:31 +0000 (16:29 -0500)
committerPekka Enberg <penberg@kernel.org>
Sat, 21 May 2011 09:53:53 +0000 (12:53 +0300)
commit8c24c6092a1443b58de3eaf02043961358ed0b78
treebc08b4a9d7723057a1ff1687a90cdb608b3c8cce
parent2f20286eef4b94b083941e24de4eb0a510830daa
slub: Remove node check in slab_free

We can set the page pointing in the percpu structure to
NULL to have the same effect as setting c->node to NUMA_NO_NODE.

Gets rid of one check in slab_free() that was only used for
forcing the slab_free to the slowpath for debugging.

We still need to set c->node to NUMA_NO_NODE to force the
slab_alloc() fastpath to the slowpath in case of debugging.

Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c