Re: [PATCH v2 1/4] mm/slub: use a track count for user metadata sizing
From: Hao Li
Date: Mon Aug 17 2026 - 06:05:15 EST
On Fri, Aug 14, 2026 at 12:10:59AM +0800, Pengpeng Hou wrote:
> SLAB_STORE_USER metadata consists of allocation and free tracks, but the
> object-layout calculations repeat the literal count at each offset site.
>
> Add TRACK_NR to the existing track-item enum and use it for metadata
> initialization, original-size placement, object-extension offsets, padding
> checks and cache sizing. This is a behavior-preserving preparation for
> extending the tracked history.
>
> Assisted-by: Codex:gpt-5
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---
> mm/slub.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
LGTM.
Reviewed-by: Hao Li <hao.li@xxxxxxxxx>
--
Thanks,
Hao