Re: [PATCH] tools/mm/slabinfo: fix total_objects attribute name
From: SeongJae Park
Date: Fri Jun 12 2026 - 20:30:36 EST
On Fri, 12 Jun 2026 15:13:59 +0800 Yichong Chen <chenyichong@xxxxxxxxxxxxx> wrote:
> 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.
Good finding, thank you for fixing this!
>
> Fixes: 205ab99dd103 ("slub: Update statistics handling for variable order slabs")
Should we add Cc: stable@ ?
> Signed-off-by: Yichong Chen <chenyichong@xxxxxxxxxxxxx>
Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
Thanks,
SJ
[...]