Re: [PATCH] tools/mm/slabinfo: fix total_objects attribute name

From: Vishal Moola

Date: Mon Jun 15 2026 - 08:49:42 EST


On Fri, Jun 12, 2026 at 05:29:12PM -0700, SeongJae Park wrote:
> 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@ ?

This variable isn't even used... so we don't need a cc stable. That's
probably why no one spotted it until now too ;)

We should probably be printing it out in another column; I'm not sure
why the initial patch didn't do so.

> > Signed-off-by: Yichong Chen <chenyichong@xxxxxxxxxxxxx>
>
> Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>
>
>
> Thanks,
> SJ
>
> [...]