diff options
Diffstat (limited to 'include/linux/slub_def.h')
| -rw-r--r-- | include/linux/slub_def.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 8b6e8ae5d5ca..45ca123e8002 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -32,10 +32,14 @@ enum stat_item { | |||
| 32 | DEACTIVATE_TO_TAIL, /* Cpu slab was moved to the tail of partials */ | 32 | DEACTIVATE_TO_TAIL, /* Cpu slab was moved to the tail of partials */ |
| 33 | DEACTIVATE_REMOTE_FREES,/* Slab contained remotely freed objects */ | 33 | DEACTIVATE_REMOTE_FREES,/* Slab contained remotely freed objects */ |
| 34 | ORDER_FALLBACK, /* Number of times fallback was necessary */ | 34 | ORDER_FALLBACK, /* Number of times fallback was necessary */ |
| 35 | CMPXCHG_DOUBLE_CPU_FAIL,/* Failure of this_cpu_cmpxchg_double */ | ||
| 35 | NR_SLUB_STAT_ITEMS }; | 36 | NR_SLUB_STAT_ITEMS }; |
| 36 | 37 | ||
| 37 | struct kmem_cache_cpu { | 38 | struct kmem_cache_cpu { |
| 38 | void **freelist; /* Pointer to first free per cpu object */ | 39 | void **freelist; /* Pointer to next available object */ |
| 40 | #ifdef CONFIG_CMPXCHG_LOCAL | ||
| 41 | unsigned long tid; /* Globally unique transaction id */ | ||
| 42 | #endif | ||
| 39 | struct page *page; /* The slab from which we are allocating */ | 43 | struct page *page; /* The slab from which we are allocating */ |
| 40 | int node; /* The node of the page (or -1 for debug) */ | 44 | int node; /* The node of the page (or -1 for debug) */ |
| 41 | #ifdef CONFIG_SLUB_STATS | 45 | #ifdef CONFIG_SLUB_STATS |
| @@ -70,6 +74,7 @@ struct kmem_cache { | |||
| 70 | struct kmem_cache_cpu __percpu *cpu_slab; | 74 | struct kmem_cache_cpu __percpu *cpu_slab; |
| 71 | /* Used for retriving partial slabs etc */ | 75 | /* Used for retriving partial slabs etc */ |
| 72 | unsigned long flags; | 76 | unsigned long flags; |
| 77 | unsigned long min_partial; | ||
| 73 | int size; /* The size of an object including meta data */ | 78 | int size; /* The size of an object including meta data */ |
| 74 | int objsize; /* The size of an object without meta data */ | 79 | int objsize; /* The size of an object without meta data */ |
| 75 | int offset; /* Free pointer offset. */ | 80 | int offset; /* Free pointer offset. */ |
| @@ -83,7 +88,7 @@ struct kmem_cache { | |||
| 83 | void (*ctor)(void *); | 88 | void (*ctor)(void *); |
| 84 | int inuse; /* Offset to metadata */ | 89 | int inuse; /* Offset to metadata */ |
| 85 | int align; /* Alignment */ | 90 | int align; /* Alignment */ |
| 86 | unsigned long min_partial; | 91 | int reserved; /* Reserved bytes at the end of slabs */ |
| 87 | const char *name; /* Name (only for display!) */ | 92 | const char *name; /* Name (only for display!) */ |
| 88 | struct list_head list; /* List of slab caches */ | 93 | struct list_head list; /* List of slab caches */ |
| 89 | #ifdef CONFIG_SYSFS | 94 | #ifdef CONFIG_SYSFS |
