Re: [PATCH v2 09/13] mm/slab: change struct slabobj_ext to a union

From: Hao Li

Date: Mon Jul 27 2026 - 02:23:41 EST


On Mon, Jul 27, 2026 at 02:41:20PM +0900, Harry Yoo wrote:
>
>
> On 7/25/26 12:42 AM, Vlastimil Babka (SUSE) wrote:
> > On 7/23/26 11:56, Hao Li wrote:
> >> On Thu, Jul 23, 2026 at 03:27:51PM +0900, Harry Yoo wrote:
> >>>
> >>> and drop OBJEXT_FLAG_UNUSED.
> >>
> >> Yes, this idea is insightful and I think it may need a standalone patch without
> >> blocking current patchset.
> >>
> >>>
> >>> ...not sure how much we care about this on 32bit though.
> >>
> >> Yeah, 32bit is a rare arch today :)
> >
> > Agreed with you both. Let's deal with it later.
>
> Sounds reasonable.

Yes, agree.

>
> > Also AFAICS the memory was already wasted on 32bit prior this series when
> > e.g. CONFIG_MEM_ALLOC_PROFILING was disabled, so there was just 4-byte objcg
> > pointer in 8-byte aligned slabobj_ext, right?
>
> Right.

Exactly.

--
Thanks,
Hao