diff options
author | 2023-10-03 15:27:11 +0200 | |
---|---|---|
committer | 2023-12-06 11:57:21 +0100 | |
commit | b774d3e326d30fc8ef841101c399e44bdac2aa48 (patch) | |
tree | 4b8af66490308105e4609eba7f242029017a63b5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/slab: move struct kmem_cache_node from slab.h to slub.c (diff) | |
download | linux-rng-b774d3e326d30fc8ef841101c399e44bdac2aa48.tar.xz linux-rng-b774d3e326d30fc8ef841101c399e44bdac2aa48.zip |
mm/slab: move kfree() from slab_common.c to slub.c
This should result in better code. Currently kfree() makes a function
call between compilation units to __kmem_cache_free() which does its own
virt_to_slab(), throwing away the struct slab pointer we already had in
kfree(). Now it can be reused. Additionally kfree() can now inline the
whole SLUB freeing fastpath.
Also move over free_large_kmalloc() as the only callsites are now in
slub.c, and make it static.
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: David Rientjes <rientjes@google.com>
Tested-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Tested-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions