diff options
| author | Hyeonggon Yoo <[email protected]> | 2022-08-17 10:18:22 +0000 |
|---|---|---|
| committer | Vlastimil Babka <[email protected]> | 2022-09-01 08:40:27 +0000 |
| commit | 26a40990ba052e6f553256f9d0f112452b992a38 (patch) | |
| tree | d7453c5d95d6b7657cf71d61f6f0e5fccf59ea83 /net/unix/sysctl_net_unix.c | |
| parent | mm/sl[au]b: generalize kmalloc subsystem (diff) | |
| download | kernel-26a40990ba052e6f553256f9d0f112452b992a38.tar.gz kernel-26a40990ba052e6f553256f9d0f112452b992a38.zip | |
mm/sl[au]b: cleanup kmem_cache_alloc[_node]_trace()
Despite its name, kmem_cache_alloc[_node]_trace() is hook for inlined
kmalloc. So rename it to kmalloc[_node]_trace().
Move its implementation to slab_common.c by using
__kmem_cache_alloc_node(), but keep CONFIG_TRACING=n varients to save a
function call when CONFIG_TRACING=n.
Use __assume_kmalloc_alignment for kmalloc[_node]_trace instead of
__assume_slab_alignement. Generally kmalloc has larger alignment
requirements.
Suggested-by: Vlastimil Babka <[email protected]>
Signed-off-by: Hyeonggon Yoo <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
