]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: remove frozen slab checks from __slab_free()
authorVlastimil Babka <vbabka@suse.cz>
Fri, 23 Jan 2026 06:52:58 +0000 (07:52 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 29 Jan 2026 08:29:27 +0000 (09:29 +0100)
commitb16af1c81277dceb96812305b471296af9adf5d0
tree89ac6cb565bde122ca4af3b34b4c5849454c28f4
parent0f7075bea8da3b01898712cfec49dd9a2f09be2f
slab: remove frozen slab checks from __slab_free()

Currently slabs are only frozen after consistency checks failed. This
can happen only in caches with debugging enabled, and those use
free_to_partial_list() for freeing. The non-debug operation of
__slab_free() can thus stop considering the frozen field, and we can
remove the FREE_FROZEN stat.

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