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 0546F367B63; Tue, 21 Jul 2026 22:37:14 +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=1784673435; cv=none; b=YBUOau2amLfMF74bZdOtxIkDxih12/740eXh2WxxJ02a9hKuIC+soSFkUaYdql93E+eSHPKFbE3H6V7J+WDQBVMS1moForsJyq5kkHMhViNKQT9kHVulTwd9X8TalsMf1NzQ3gruVb4jlJrf3RG8YzQtXmKMi3PJxewKKx1rkik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784673435; c=relaxed/simple; bh=c5Bwzyj2QUX0GODEyrlq551Sl8XkOkJkZxgl0FK97DY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oic0pchPsri2Hd2rvr+ltuLJ8p7WyGnxV/QxldoJ6Xuxiv2UDIYdXgjBS4mXvP9wi/hUHfwhgBWhYD0XJsDqgeCm7ITV2tlngDDC2KWMr5+3U4/UfP5I5PF9qs4PIkkFtZX0IO4pfwN7pXzrSdMOR+7OmxW5toWVnSujxGW/KDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=19IZlaRa; 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="19IZlaRa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B8111F000E9; Tue, 21 Jul 2026 22:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784673433; bh=WxeDzW6A/n7neKD0Z3AUm36KO6hNZsOWvuEggGMhZws=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=19IZlaRa/8KmGScYgTyXBQNVmfkrGmfu6oDL8AAi8OLbBuDF3nfSq8cHOikCsKZp3 YqElfPLL8Oq0RYc2k3Tu7zIo8tHeaXPDneXFOydRIUTlioO0qQsrqhD7QBYMz7rLRq tDAppGEIyOUx92IdANFMjENQwrScGR6a2kpVZuVM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yichong Chen , SeongJae Park , "Vlastimil Babka (SUSE)" , Sasha Levin Subject: [PATCH 5.10 160/699] tools/mm/slabinfo: fix total_objects attribute name Date: Tue, 21 Jul 2026 17:18:39 +0200 Message-ID: <20260721152359.313705186@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152355.667394603@linuxfoundation.org> References: <20260721152355.667394603@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 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yichong Chen [ Upstream commit 892a7864730775c3dbee2a39e9ead4fa8d4256e7 ] 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: Sasha Levin --- tools/vm/slabinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index 3ae985dc24b6d6..5819c4133e0d9c 100644 --- a/tools/vm/slabinfo.c +++ b/tools/vm/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; @@ -1232,7 +1232,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"); -- 2.53.0