]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/mm/slabinfo: fix total_objects attribute name
authorYichong Chen <chenyichong@uniontech.com>
Fri, 12 Jun 2026 07:13:59 +0000 (15:13 +0800)
committerVlastimil Babka (SUSE) <vbabka@kernel.org>
Thu, 18 Jun 2026 09:19:43 +0000 (11:19 +0200)
commit892a7864730775c3dbee2a39e9ead4fa8d4256e7
tree341f736e10aafe12afad75e29a2d832cbf03af1a
parent7b5f5865fb11e60edd03c5e063e2d228b7062317
tools/mm/slabinfo: fix total_objects attribute name

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 <chenyichong@uniontech.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: SeongJae Park <sj@kernel.org>
Link: https://patch.msgid.link/96556748872BB47E+20260612071359.649946-1-chenyichong@uniontech.com
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
tools/mm/slabinfo.c