diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2018-04-05 19:20:51 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 00:36:23 -0400 |
| commit | 56d8ceebd39b4db3248291e6d1e3e696fc73b077 (patch) | |
| tree | d5bc1595b0d3a0303c65206ff506dbe8347268cd /include/linux | |
| parent | eb7235eb842043ca302e992286ca6af63a8127fe (diff) | |
slub: make ->max_attr_size unsigned int
->max_attr_size is maximum length of every SLAB memcg attribute
ever written. VFS limits those to INT_MAX.
Link: http://lkml.kernel.org/r/20180305200730.15812-10-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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index f6548083fe0f..9bb761324a9c 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h | |||
| @@ -110,7 +110,8 @@ struct kmem_cache { | |||
| 110 | #endif | 110 | #endif |
| 111 | #ifdef CONFIG_MEMCG | 111 | #ifdef CONFIG_MEMCG |
| 112 | struct memcg_cache_params memcg_params; | 112 | struct memcg_cache_params memcg_params; |
| 113 | int max_attr_size; /* for propagation, maximum size of a stored attr */ | 113 | /* for propagation, maximum size of a stored attr */ |
| 114 | unsigned int max_attr_size; | ||
| 114 | #ifdef CONFIG_SYSFS | 115 | #ifdef CONFIG_SYSFS |
| 115 | struct kset *memcg_kset; | 116 | struct kset *memcg_kset; |
| 116 | #endif | 117 | #endif |
