slub: Reflow ___slab_alloc()
The get_partial() interface used in ___slab_alloc() may return a single object in the "kmem_cache_debug(s)" case, in which we will just return the "freelist" object. Move this handling up to prepare for later changes. And the "pfmemalloc_match()" part is not needed for node partial slab, since we already check this in the get_partial_node(). Signed-off-by:Chengming Zhou <zhouchengming@bytedance.com> Reviewed-by:
Vlastimil Babka <vbabka@suse.cz> Tested-by:
Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by:
Hyeonggon Yoo <42.hyeyoo@gmail.com> Signed-off-by:
Vlastimil Babka <vbabka@suse.cz>
Loading
Please register or sign in to comment