diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-06 01:20:58 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 06:36:23 +0200 |
commit | d66e52d1e82b1adfab541f1aad09526ebf67842d (patch) | |
tree | 32b30bbb578637535718c7314813d19919d08aac /mm/slub.c | |
parent | slub: make ->red_left_pad unsigned int (diff) | |
download | linux-d66e52d1e82b1adfab541f1aad09526ebf67842d.tar.xz linux-d66e52d1e82b1adfab541f1aad09526ebf67842d.zip |
slub: make ->reserved unsigned int
->reserved is either 0 or sizeof(struct rcu_head), can't be negative.
Link: http://lkml.kernel.org/r/20180305200730.15812-12-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 '')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c index 97dd2db30acb..e38221c13b07 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5094,7 +5094,7 @@ SLAB_ATTR_RO(destroy_by_rcu); static ssize_t reserved_show(struct kmem_cache *s, char *buf) { - return sprintf(buf, "%d\n", s->reserved); + return sprintf(buf, "%u\n", s->reserved); } SLAB_ATTR_RO(reserved); |