]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: Remove references to folios from virt_to_slab()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 13 Nov 2025 00:09:30 +0000 (00:09 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 13 Nov 2025 19:23:58 +0000 (20:23 +0100)
commit76ade2443397ef7612c978f92858d525e5b2eeab
tree21f9ef463e42ce0a88c283436b9f81646880c916
parentbbe711730515f688a0bf4ab76a2639bcede933f9
slab: Remove references to folios from virt_to_slab()

Use page_slab() instead of virt_to_folio() which will work
perfectly when struct slab is separated from struct folio.

This was the last user of folio_slab(), so delete it.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Link: https://patch.msgid.link/20251113000932.1589073-17-willy@infradead.org
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slab.h