aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/slub_def.h
diff options
context:
space:
mode:
authorChristoph Lameter <cl@linux.com>2011-02-25 12:38:51 -0500
committerPekka Enberg <penberg@kernel.org>2011-03-11 10:42:49 -0500
commit1a757fe5d4234293d6a3acccd7196f1386443956 (patch)
treedeb7241f053472e77c411157a7363c9a3eda9615 /include/linux/slub_def.h
parent2a6c5176ecc87eaeb5b1e6d8e64deb9430f4e602 (diff)
slub: min_partial needs to be in first cacheline
It is used in unfreeze_slab() which is a performance critical function. 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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index 8b6e8ae5d5ca..875df55ab36d 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -70,6 +70,7 @@ struct kmem_cache {
70 struct kmem_cache_cpu __percpu *cpu_slab; 70 struct kmem_cache_cpu __percpu *cpu_slab;
71 /* Used for retriving partial slabs etc */ 71 /* Used for retriving partial slabs etc */
72 unsigned long flags; 72 unsigned long flags;
73 unsigned long min_partial;
73 int size; /* The size of an object including meta data */ 74 int size; /* The size of an object including meta data */
74 int objsize; /* The size of an object without meta data */ 75 int objsize; /* The size of an object without meta data */
75 int offset; /* Free pointer offset. */ 76 int offset; /* Free pointer offset. */
@@ -83,7 +84,6 @@ struct kmem_cache {
83 void (*ctor)(void *); 84 void (*ctor)(void *);
84 int inuse; /* Offset to metadata */ 85 int inuse; /* Offset to metadata */
85 int align; /* Alignment */ 86 int align; /* Alignment */
86 unsigned long min_partial;
87 const char *name; /* Name (only for display!) */ 87 const char *name; /* Name (only for display!) */
88 struct list_head list; /* List of slab caches */ 88 struct list_head list; /* List of slab caches */
89#ifdef CONFIG_SYSFS 89#ifdef CONFIG_SYSFS