Re: [PATCH 2/6] slab: wrap debug slab validation in validate_slab_ptr()

Harry Yoo
2025-09-12T10:20:39Z

On Thu, Sep 11, 2025 at 07:02:35PM +0200, Vlastimil Babka wrote:
> This will make it clear where we currently cast struct slab to folio
> only to check the slab type, and allow to change the implementation
> later with memdesc conversion.
>
> For now use a struct page based implementation instead of struct folio
> to be compatible with further upcoming changes.
>
> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
> ---

Looks good to me,
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>

> mm/slub.c | 15 ++++++++++++---
> 1 file changed, 12 insertions(+), 3 deletions(-)
>

--
Cheers,
Harry / Hyeonggon