slub: Get rid of the node field
authorChristoph Lameter <cl@linux.com>
Wed, 9 May 2012 15:09:56 +0000 (10:09 -0500)
committerPekka Enberg <penberg@kernel.org>
Fri, 1 Jun 2012 06:25:41 +0000 (09:25 +0300)
commitec3ab083a7a004282ee374bdaeb0aa603521b8eb
tree8c570d6bd284ca8357675a4e7c8409dec691f91c
parent188fd063208942a4681d8e8a4484ad0d4ae0fda1
slub: Get rid of the node field

The node field is always page_to_nid(c->page). So its rather easy to
replace. Note that there maybe slightly more overhead in various hot paths
due to the need to shift the bits from page->flags. However, that is mostly
compensated for by a smaller footprint of the kmem_cache_cpu structure (this
patch reduces that to 3 words per cache) which allows better caching.

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