diff options
author | Christoph Lameter <cl@linux.com> | 2013-01-10 14:14:19 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2013-02-01 05:32:09 -0500 |
commit | ca34956b804b7554fc4e88826773380d9d5122a8 (patch) | |
tree | 5fbcbd881ebe6e0229f59ff97f7d7a36ccd6e004 /include/linux/slub_def.h | |
parent | ce8eb6c424c794d7fb4d1a6667d267990ca28072 (diff) |
slab: Common definition for kmem_cache_node
Put the definitions for the kmem_cache_node structures together so that
we have one structure. That will allow us to create more common fields in
the future which could yield more opportunities to share code.
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 | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 16341e5316de..027276fa8713 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
@@ -53,17 +53,6 @@ struct kmem_cache_cpu { | |||
53 | #endif | 53 | #endif |
54 | }; | 54 | }; |
55 | 55 | ||
56 | struct kmem_cache_node { | ||
57 | spinlock_t list_lock; /* Protect partial list and nr_partial */ | ||
58 | unsigned long nr_partial; | ||
59 | struct list_head partial; | ||
60 | #ifdef CONFIG_SLUB_DEBUG | ||
61 | atomic_long_t nr_slabs; | ||
62 | atomic_long_t total_objects; | ||
63 | struct list_head full; | ||
64 | #endif | ||
65 | }; | ||
66 | |||
67 | /* | 56 | /* |
68 | * Word size structure that can be atomically updated or read and that | 57 | * Word size structure that can be atomically updated or read and that |
69 | * contains both the order and the number of objects that a slab of the | 58 | * contains both the order and the number of objects that a slab of the |