summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorVlastimil Babka (SUSE) <vbabka@kernel.org>2026-06-10 18:40:06 +0300
committerVlastimil Babka (SUSE) <vbabka@kernel.org>2026-06-15 14:16:27 +0300
commit203890bbd29266cfff412cab607d2027bd2951c5 (patch)
tree242e765d85fa4f25dc13d9f2d2fccf9c69183468 /scripts/const_structs.checkpatch
parent5fd1c77e97decf78573843f4ad1ea3ddcc1ea102 (diff)
downloadlinux-203890bbd29266cfff412cab607d2027bd2951c5.tar.xz
mm/slab: introduce slab_alloc_context
Similarly to page allocator's struct alloc_context, introduce a helper struct to hold a part of the allocation arguments. This will allow reducing the number of parameters in many functions of the implementation, and extend them easily if needed. For now, make it hold the caller address and the originally requested allocation size. Convert alloc_single_from_new_slab(), __slab_alloc_node() and ___slab_alloc(). No functional change intended. Link: https://patch.msgid.link/20260610-slab_alloc_flags-v2-4-7190909db118@kernel.org Reviewed-by: Harry Yoo (Oracle) <harry@kernel.org> Reviewed-by: Suren Baghdasaryan <surenb@google.com> Reviewed-by: Hao Li <hao.li@linux.dev> Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions