diff options
Diffstat (limited to 'include/linux/slab_def.h')
-rw-r--r-- | include/linux/slab_def.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index fbd1117fdfde..1d93f27d81de 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h | |||
@@ -27,7 +27,7 @@ struct kmem_cache { | |||
27 | unsigned int limit; | 27 | unsigned int limit; |
28 | unsigned int shared; | 28 | unsigned int shared; |
29 | 29 | ||
30 | unsigned int buffer_size; | 30 | unsigned int size; |
31 | u32 reciprocal_buffer_size; | 31 | u32 reciprocal_buffer_size; |
32 | /* 2) touched by every alloc & free from the backend */ | 32 | /* 2) touched by every alloc & free from the backend */ |
33 | 33 | ||
@@ -52,7 +52,10 @@ struct kmem_cache { | |||
52 | 52 | ||
53 | /* 4) cache creation/removal */ | 53 | /* 4) cache creation/removal */ |
54 | const char *name; | 54 | const char *name; |
55 | struct list_head next; | 55 | struct list_head list; |
56 | int refcount; | ||
57 | int object_size; | ||
58 | int align; | ||
56 | 59 | ||
57 | /* 5) statistics */ | 60 | /* 5) statistics */ |
58 | #ifdef CONFIG_DEBUG_SLAB | 61 | #ifdef CONFIG_DEBUG_SLAB |
@@ -73,12 +76,11 @@ struct kmem_cache { | |||
73 | 76 | ||
74 | /* | 77 | /* |
75 | * If debugging is enabled, then the allocator can add additional | 78 | * If debugging is enabled, then the allocator can add additional |
76 | * fields and/or padding to every object. buffer_size contains the total | 79 | * fields and/or padding to every object. size contains the total |
77 | * object size including these internal fields, the following two | 80 | * object size including these internal fields, the following two |
78 | * variables contain the offset to the user object and its size. | 81 | * variables contain the offset to the user object and its size. |
79 | */ | 82 | */ |
80 | int obj_offset; | 83 | int obj_offset; |
81 | int obj_size; | ||
82 | #endif /* CONFIG_DEBUG_SLAB */ | 84 | #endif /* CONFIG_DEBUG_SLAB */ |
83 | 85 | ||
84 | /* 6) per-cpu/per-node data, touched during every alloc/free */ | 86 | /* 6) per-cpu/per-node data, touched during every alloc/free */ |