From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id F27496B026C for ; Thu, 23 Nov 2017 17:17:17 -0500 (EST) Received: by mail-wm0-f72.google.com with SMTP id m78so5591982wma.3 for ; Thu, 23 Nov 2017 14:17:17 -0800 (PST) Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id x17sor7477374wrg.62.2017.11.23.14.17.16 for (Google Transport Security); Thu, 23 Nov 2017 14:17:16 -0800 (PST) From: Alexey Dobriyan Subject: [PATCH 09/23] slub: make ->max_attr_size unsigned int Date: Fri, 24 Nov 2017 01:16:14 +0300 Message-Id: <20171123221628.8313-9-adobriyan@gmail.com> In-Reply-To: <20171123221628.8313-1-adobriyan@gmail.com> References: <20171123221628.8313-1-adobriyan@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com, Alexey Dobriyan ->max_attr_size is maximum length of every SLAB memcg attribute ever written. VFS limits those to INT_MAX. Signed-off-by: Alexey Dobriyan --- include/linux/slub_def.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h index 571ff513ed97..5e98817e18a3 100644 --- a/include/linux/slub_def.h +++ b/include/linux/slub_def.h @@ -110,7 +110,8 @@ struct kmem_cache { #endif #ifdef CONFIG_MEMCG struct memcg_cache_params memcg_params; - int max_attr_size; /* for propagation, maximum size of a stored attr */ + /* for propagation, maximum size of a stored attr */ + unsigned int max_attr_size; #ifdef CONFIG_SYSFS struct kset *memcg_kset; #endif -- 2.13.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org