mm, slub: split out allocations from pre/post hooks
authorVlastimil Babka <vbabka@suse.cz>
Mon, 21 Nov 2022 15:23:50 +0000 (16:23 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 30 Nov 2022 23:09:04 +0000 (00:09 +0100)
commit56d5a2b9ba85a390473e86b4fe4697560242a248
treea8162ac9ce1711f850175b00e5848a9e1bae0c35
parentfa9b88e459d710cadf3b01e8a64eda00cc91cdd6
mm, slub: split out allocations from pre/post hooks

In the following patch we want to introduce CONFIG_SLUB_TINY allocation
paths that don't use the percpu slab. To prepare, refactor the
allocation functions:

Split out __slab_alloc_node() from slab_alloc_node() where the former
does the actual allocation and the latter calls the pre/post hooks.

Analogically, split out __kmem_cache_alloc_bulk() from
kmem_cache_alloc_bulk().

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
mm/slub.c