mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-31 05:15:34 +00:00
slab: wrap debug slab validation in validate_slab_ptr()
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. Reviewed-by: Harry Yoo <harry.yoo@oracle.com> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
parent
f4930de03d
commit
86169b00f8
1 changed files with 12 additions and 3 deletions
15
mm/slub.c
15
mm/slub.c
Loading…
Add table
Add a link
Reference in a new issue