From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71983424659; Thu, 16 Jul 2026 13:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784209764; cv=none; b=e1KLdnP92mSkU9lKeESqwHyMD7+ZBwja8e7L6MI2xp074lCBOMeTI2DkCok5uLxIL8bnjn36dkf3yZoPyLobXHgBzxG/pjejvw4UBUwChd0qPoYNCCjsPI8sYlzEJcYzXyVd/tFQFIccVWqTdZCtwGUQVDxxkr8nZ6VF2TIs7HY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784209764; c=relaxed/simple; bh=hroJE3WSutRwPbmzHpXhWL8oGNMHaovcv5IErB2UG2Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TifQw0zjmIfPiz/VP5w2VHdmKsKwsRkn2NI/xkvghsaXZWd+Yg+jRQMGSR3iNiElMfJld+mwEPImZTZfJ0er0aBYg/nPLXe+ycZiKMJ4effox0axW2cmxhfQGH6gFlS/UpiW2Vor+bpfpz/ftDXhmSeUkburhs14pUKlZOgGANk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UYenhL+D; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="UYenhL+D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80A991F00A3A; Thu, 16 Jul 2026 13:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784209760; bh=IRDSi4SgqgXFKTAkC2pGoQlKY0yzfBpXMB8qT6NzItY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=UYenhL+DrLovda+ZGYOS//ka6nUhostcIieqccAMvXfS9sEaqvYkROOxtC0wmfrCK USTInNKTTTTgkBl1JS+6wpXSnPwla23pB0Po4ODLW92xJa+m8vSmDS+n0spsPNTlgk oJkGP+qM574mfGlKtrYNfZyouXtY+VvUCgstHKgI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yichong Chen , SeongJae Park , "Vlastimil Babka (SUSE)" Subject: [PATCH 7.1 264/518] tools/mm/slabinfo: fix total_objects attribute name Date: Thu, 16 Jul 2026 15:28:52 +0200 Message-ID: <20260716133053.595496283@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260716133047.772246337@linuxfoundation.org> References: <20260716133047.772246337@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yichong Chen commit 892a7864730775c3dbee2a39e9ead4fa8d4256e7 upstream. SLUB exports the total_objects sysfs attribute, but slabinfo tries to read objects_total. As a result, the lookup fails and the field remains zero. Use the correct attribute name and rename the corresponding structure member to match. Fixes: 205ab99dd103 ("slub: Update statistics handling for variable order slabs") Signed-off-by: Yichong Chen Cc: Reviewed-by: SeongJae Park Link: https://patch.msgid.link/96556748872BB47E+20260612071359.649946-1-chenyichong@uniontech.com Signed-off-by: Vlastimil Babka (SUSE) Signed-off-by: Greg Kroah-Hartman --- tools/mm/slabinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/mm/slabinfo.c +++ b/tools/mm/slabinfo.c @@ -33,7 +33,7 @@ struct slabinfo { unsigned int hwcache_align, object_size, objs_per_slab; unsigned int sanity_checks, slab_size, store_user, trace; int order, poison, reclaim_account, red_zone; - unsigned long partial, objects, slabs, objects_partial, objects_total; + unsigned long partial, objects, slabs, objects_partial, total_objects; unsigned long alloc_fastpath, alloc_slowpath; unsigned long free_fastpath, free_slowpath; unsigned long free_frozen, free_add_partial, free_remove_partial; @@ -1263,7 +1263,7 @@ static void read_slab_dir(void) slab->object_size = get_obj("object_size"); slab->objects = get_obj("objects"); slab->objects_partial = get_obj("objects_partial"); - slab->objects_total = get_obj("objects_total"); + slab->total_objects = get_obj("total_objects"); slab->objs_per_slab = get_obj("objs_per_slab"); slab->order = get_obj("order"); slab->partial = get_obj("partial");