]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - include/linux/slub_def.h
slub: move min_partial to struct kmem_cache
[~shefty/rdma-dev.git] / include / linux / slub_def.h
index 2f5c16b1aacd3d7bd83a50d90fcba527017a0373..f20a89e4d52c95d5954928b9a597354b29fd4bd6 100644 (file)
@@ -46,7 +46,6 @@ struct kmem_cache_cpu {
 struct kmem_cache_node {
        spinlock_t list_lock;   /* Protect partial list and nr_partial */
        unsigned long nr_partial;
-       unsigned long min_partial;
        struct list_head partial;
 #ifdef CONFIG_SLUB_DEBUG
        atomic_long_t nr_slabs;
@@ -89,6 +88,7 @@ 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_SLUB_DEBUG