slub: Move node determination out of hotpath
authorChristoph Lameter <cl@linux.com>
Fri, 15 Apr 2011 19:48:15 +0000 (14:48 -0500)
committerPekka Enberg <penberg@kernel.org>
Sun, 17 Apr 2011 11:03:20 +0000 (14:03 +0300)
commitdc1fb7f43636754a4d06f7bdb8ea3269a7d71d6d
tree85d7cd2cc81d89805b9d3cc3c0ec89b5f6c357f9
parent01ad8a7bc226ddbbf90e4c15167d9e31a8d02930
slub: Move node determination out of hotpath

If the node does not change then there is no need to recalculate
the node from the page struct. So move the node determination
into the places where we acquire a new slab page.

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