Commit 86169b0
committed
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 <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>1 parent f4930de commit 86169b0
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
821 | 821 | | |
822 | 822 | | |
823 | 823 | | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
824 | 833 | | |
825 | 834 | | |
826 | 835 | | |
| |||
1453 | 1462 | | |
1454 | 1463 | | |
1455 | 1464 | | |
1456 | | - | |
| 1465 | + | |
1457 | 1466 | | |
1458 | 1467 | | |
1459 | 1468 | | |
| |||
1653 | 1662 | | |
1654 | 1663 | | |
1655 | 1664 | | |
1656 | | - | |
| 1665 | + | |
1657 | 1666 | | |
1658 | 1667 | | |
1659 | 1668 | | |
| |||
2818 | 2827 | | |
2819 | 2828 | | |
2820 | 2829 | | |
2821 | | - | |
| 2830 | + | |
2822 | 2831 | | |
2823 | 2832 | | |
2824 | 2833 | | |
| |||
0 commit comments