diff options
author | Christoph Lameter <cl@linux.com> | 2012-05-09 11:09:56 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2012-06-01 02:25:41 -0400 |
commit | ec3ab083a7a004282ee374bdaeb0aa603521b8eb (patch) | |
tree | 8c570d6bd284ca8357675a4e7c8409dec691f91c /include/linux/slub_def.h | |
parent | 188fd063208942a4681d8e8a4484ad0d4ae0fda1 (diff) |
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>
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r-- | include/linux/slub_def.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index c2f8c8bc56ed..ebdcf4ba42ee 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
@@ -48,7 +48,6 @@ struct kmem_cache_cpu { | |||
48 | unsigned long tid; /* Globally unique transaction id */ | 48 | unsigned long tid; /* Globally unique transaction id */ |
49 | struct page *page; /* The slab from which we are allocating */ | 49 | struct page *page; /* The slab from which we are allocating */ |
50 | struct page *partial; /* Partially allocated frozen slabs */ | 50 | struct page *partial; /* Partially allocated frozen slabs */ |
51 | int node; /* The node of the page (or -1 for debug) */ | ||
52 | #ifdef CONFIG_SLUB_STATS | 51 | #ifdef CONFIG_SLUB_STATS |
53 | unsigned stat[NR_SLUB_STAT_ITEMS]; | 52 | unsigned stat[NR_SLUB_STAT_ITEMS]; |
54 | #endif | 53 | #endif |