slub: min_partial needs to be in first cacheline
authorChristoph Lameter <cl@linux.com>
Fri, 25 Feb 2011 17:38:51 +0000 (11:38 -0600)
committerPekka Enberg <penberg@kernel.org>
Fri, 11 Mar 2011 15:42:49 +0000 (17:42 +0200)
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>
include/linux/slub_def.h

index 8b6e8ae..875df55 100644 (file)
@@ -70,6 +70,7 @@ struct kmem_cache {
        struct kmem_cache_cpu __percpu *cpu_slab;
        /* Used for retriving partial slabs etc */
        unsigned long flags;
+       unsigned long min_partial;
        int size;               /* The size of an object including meta data */
        int objsize;            /* The size of an object without meta data */
        int offset;             /* Free pointer offset. */
@@ -83,7 +84,6 @@ struct kmem_cache {
        void (*ctor)(void *);
        int inuse;              /* Offset to metadata */
        int align;              /* Alignment */
-       unsigned long min_partial;
        const char *name;       /* Name (only for display!) */
        struct list_head list;  /* List of slab caches */
 #ifdef CONFIG_SYSFS