Re: [PATCH v2] slub: clarify object field layout comments

From: Hao Li

Date: Wed Jan 07 2026 - 10:11:04 EST


On Wed, Jan 07, 2026 at 11:35:49AM +0100, Vlastimil Babka wrote:
> On 12/29/25 13:24, Hao Li wrote:
> > The comments above check_pad_bytes() document the field layout of a
> > single object. Rewrite them to improve clarity and precision.
> >
> > Also update an outdated comment in calculate_sizes().
> >
> > Suggested-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
> > Acked-by: Harry Yoo <harry.yoo@xxxxxxxxxx>
> > Signed-off-by: Hao Li <hao.li@xxxxxxxxx>
>
> Thanks, that's a great improvement. Adding to slab/for-next.
> Wonder if some ASCII art diagram would be also feasible to add, if you feel
> like trying :)

Great idea - I’d be happy to give it a try.

--
Thanks,
Hao

>