]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3acde674775669caec7dd6dd6c53e18541acbce7
tree8c570d6bd284ca8357675a4e7c8409dec691f91c
parent6962da6fb7af68c269c860e2cf5cf87a9175d62b
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