diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2017-11-15 20:32:18 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 21:21:01 -0500 |
| commit | d50112edde1d0c621520e53747044009f11c656b (patch) | |
| tree | ca4092f2126ac85a63647a48e43ecbf34bb69782 /include/linux/slub_def.h | |
| parent | a3ba074447824625d3a267a5fffd2ea21556ebf4 (diff) | |
slab, slub, slob: add slab_flags_t
Add sparse-checked slab_flags_t for struct kmem_cache::flags (SLAB_POISON,
etc).
SLAB is bloated temporarily by switching to "unsigned long", but only
temporarily.
Link: http://lkml.kernel.org/r/20171021100225.GA22428@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Christoph Lameter <cl@linux.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/slub_def.h')
| -rw-r--r-- | include/linux/slub_def.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 39fa09bcde23..0adae162dc8f 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -82,7 +82,7 @@ struct kmem_cache_order_objects { | |||
| 82 | struct kmem_cache { | 82 | struct kmem_cache { |
| 83 | struct kmem_cache_cpu __percpu *cpu_slab; | 83 | struct kmem_cache_cpu __percpu *cpu_slab; |
| 84 | /* Used for retriving partial slabs etc */ | 84 | /* Used for retriving partial slabs etc */ |
| 85 | unsigned long flags; | 85 | slab_flags_t flags; |
| 86 | unsigned long min_partial; | 86 | unsigned long min_partial; |
| 87 | int size; /* The size of an object including meta data */ | 87 | int size; /* The size of an object including meta data */ |
| 88 | int object_size; /* The size of an object without meta data */ | 88 | int object_size; /* The size of an object without meta data */ |
