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

Harry Yoo <[email protected]> Mon, 27 Jul 2026 14:41:20 +0900
Newsgroups org.kernel.vger.cgroups,org.kernel.vger.linux-kernel,org.kvack.linux-mm
Message-ID <[email protected]>

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.

> 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.

-- 
Cheers,
Harry / Hyeonggon
OpenPGP_signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQQQ1ub6gR5ogjaKRmOGXBN6rc5S1gUCambvgAAKCRCGXBN6rc5S
1i+uAP4zMR6KAfExVASA33SIec4hOe1qPSAA+y6SvbztDbmuwwD+O9oxG/LJahjB
u7CQFZJxg9HPyZTA9A2Q25sRF9mC3QA=
=RYZd
-----END PGP SIGNATURE-----