Skip to content
Commit 75c8ff28 authored by Vlastimil Babka's avatar Vlastimil Babka
Browse files

mm, slub: return slab page from get_partial() and set c->page afterwards



The function get_partial() finds a suitable page on a partial list, acquires
and returns its freelist and assigns the page pointer to kmem_cache_cpu.
In later patch we will need more control over the kmem_cache_cpu.page
assignment, so instead of passing a kmem_cache_cpu pointer, pass a pointer to a
pointer to a page that get_partial() can fill and the caller can assign the
kmem_cache_cpu.page pointer. No functional change as all of this still happens
with disabled IRQs.

Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent 53a0de06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment