]> www.infradead.org Git - users/willy/linux.git/commit
mm/slub: Convert new_slab() to return a struct slab
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 1 Oct 2021 18:34:28 +0000 (14:34 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 4 Oct 2021 12:33:50 +0000 (08:33 -0400)
commitdf7d39bfaaef90ac7fd7a648168fc5e5e6dc1741
treea6b16340bdd811b1b18017946b8d7248c2c2fdc8
parentd3c49537ed111cc02129e981c62744c37108ce4e
mm/slub: Convert new_slab() to return a struct slab

We can cast directly from struct page to struct slab in alloc_slab_page()
because the page pointer returned from the page allocator is guaranteed
to be a head page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/slub.c