diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-05 19:21:02 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 00:36:23 -0400 |
| commit | 3a3791ec2ecd5db8d903b66faa340b0dfa72e64b (patch) | |
| tree | 4036be0bdd1a1cd682be53bc72fe7821859aed19 /include/linux | |
| parent | d66e52d1e82b1adfab541f1aad09526ebf67842d (diff) | |
slub: make ->align unsigned int
Kmem cache alignment can't be negative.
Link: http://lkml.kernel.org/r/20180305200730.15812-13-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')
| -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 2b4417aa15d8..2a0eabeff78f 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -99,7 +99,7 @@ struct kmem_cache { | |||
| 99 | int refcount; /* Refcount for slab cache destroy */ | 99 | int refcount; /* Refcount for slab cache destroy */ |
| 100 | void (*ctor)(void *); | 100 | void (*ctor)(void *); |
| 101 | int inuse; /* Offset to metadata */ | 101 | int inuse; /* Offset to metadata */ |
| 102 | int align; /* Alignment */ | 102 | unsigned int align; /* Alignment */ |
| 103 | unsigned int reserved; /* Reserved bytes at the end of slabs */ | 103 | unsigned int reserved; /* Reserved bytes at the end of slabs */ |
| 104 | unsigned int red_left_pad; /* Left redzone padding size */ | 104 | unsigned int red_left_pad; /* Left redzone padding size */ |
| 105 | const char *name; /* Name (only for display!) */ | 105 | const char *name; /* Name (only for display!) */ |
