Re: [PATCH v3] mm/memcg: alignment memcg_data define condition

From: Vlastimil Babka
Date: Fri Jul 12 2024 - 03:40:38 EST


On 7/12/24 6:14 AM, alexs@xxxxxxxxxx wrote:
> From: "Alex Shi (Tencent)" <alexs@xxxxxxxxxx>
>
> commit 21c690a349ba ("mm: introduce slabobj_ext to support slab object
> extensions") changed the folio/page->memcg_data define condition from
> MEMCG to SLAB_OBJ_EXT. This action make memcg_data exposed while !MEMCG.
>
> As Vlastimil Babka suggested, let's add _unused_slab_obj_ext for
> SLAB_MATCH for slab.obj_exts while !MEMCG. That could resolve the match
> issue, clean up the feature logical.
>
> Signed-off-by: Alex Shi (Tencent) <alexs@xxxxxxxxxx>
> Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Cc: Yoann Congal <yoann.congal@xxxxxxxx>
> Cc: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> Cc: Petr Mladek <pmladek@xxxxxxxx>
> Cc: Suren Baghdasaryan <surenb@xxxxxxxxxx>
> Cc: Vlastimil Babka <vbabka@xxxxxxx>

Thanks, added to slab/for-next