diff options
author | Christoph Lameter <cl@linux.com> | 2010-09-28 08:10:26 -0500 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2010-10-02 10:44:10 +0300 |
commit | 7340cc84141d5236c5dd003359ee921513cd9b84 (patch) | |
tree | fec0ddb018a948773df32cf109c15f4bd596c97d /include/linux/slub_def.h | |
parent | ed59ecbf8904a40cf0a1ee5d6f100d76d2f44e5f (diff) | |
download | kernel_goldelico_gta04-7340cc84141d5236c5dd003359ee921513cd9b84.zip kernel_goldelico_gta04-7340cc84141d5236c5dd003359ee921513cd9b84.tar.gz kernel_goldelico_gta04-7340cc84141d5236c5dd003359ee921513cd9b84.tar.bz2 |
slub: reduce differences between SMP and NUMA
Reduce the #ifdefs and simplify bootstrap by making SMP and NUMA as much alike
as possible. This means that there will be an additional indirection to get to
the kmem_cache_node field under SMP.
Acked-by: David Rientjes <rientjes@google.com>
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 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index a6c43ec..b33c0f2 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -96,11 +96,8 @@ struct kmem_cache { * Defragmentation by allocating from a remote node. */ int remote_node_defrag_ratio; - struct kmem_cache_node *node[MAX_NUMNODES]; -#else - /* Avoid an extra cache line for UP */ - struct kmem_cache_node local_node; #endif + struct kmem_cache_node *node[MAX_NUMNODES]; }; /* |