]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: remove the do_slab_free() fastpath
authorVlastimil Babka <vbabka@suse.cz>
Fri, 23 Jan 2026 06:52:51 +0000 (07:52 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 29 Jan 2026 08:29:26 +0000 (09:29 +0100)
commitbdc9282f7809678db34e3d7e094b267a6bdd9dac
treeb38a7731d9cb54eb2575d336e079b16d04e83090
parente323b52cf00ffc3f5ac79420af7ab340b4576a5c
slab: remove the do_slab_free() fastpath

We have removed cpu slab usage from allocation paths. Now remove
do_slab_free() which was freeing objects to the cpu slab when
the object belonged to it. Instead call __slab_free() directly,
which was previously the fallback.

This simplifies kfree_nolock() - when freeing to percpu sheaf
fails, we can call defer_free() directly.

Also remove functions that became unused.

Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Reviewed-by: Hao Li <hao.li@linux.dev>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c