diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-05 19:21:20 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 00:36:24 -0400 |
| commit | 44065b2e2975ff5987164b98d29cc78e207f9a5a (patch) | |
| tree | b60f67312bfc31e4fc6af12a242705b16b81da6f /include/linux/slub_def.h | |
| parent | 1b473f29d5dd766903ac2372ac04b07600f233d0 (diff) | |
slub: make ->size unsigned int
Linux doesn't support negative length objects (including meta data).
Link: http://lkml.kernel.org/r/20180305200730.15812-18-adobriyan@gmail.com
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
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 7d74f121ef4e..bc02fd3a8ccf 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -84,7 +84,7 @@ struct kmem_cache { | |||
| 84 | /* Used for retriving partial slabs etc */ | 84 | /* Used for retriving partial slabs etc */ |
| 85 | slab_flags_t 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 | unsigned int size; /* The size of an object including meta data */ |
| 88 | unsigned int object_size;/* The size of an object without meta data */ | 88 | unsigned int object_size;/* The size of an object without meta data */ |
| 89 | unsigned int offset; /* Free pointer offset. */ | 89 | unsigned int offset; /* Free pointer offset. */ |
| 90 | #ifdef CONFIG_SLUB_CPU_PARTIAL | 90 | #ifdef CONFIG_SLUB_CPU_PARTIAL |
