]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: Remove dead code in free_consistency_checks()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 15 Sep 2025 13:55:08 +0000 (15:55 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 15 Sep 2025 14:10:10 +0000 (16:10 +0200)
commitf4930de03dcf4a3f2515546f5b3c04bac016685d
tree17b549428ca7ae9b070c292e86078831f1276306
parent41534d499e50e23571d6b9960498777d93f817ce
slab: Remove dead code in free_consistency_checks()

We already know that slab is a valid slab as that's checked by the
caller.  In the future, we won't be able to get to a slab pointer
from a non-slab page.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c