Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm: remove reference to destructor in comment in calculate_sizes()

The commit that removed support for destructors from kmem_cache_alloc()
never removed the comment regarding destructors in the explanation of the
possible relocation of the free pointer in calculate_sizes().

Link: https://lkml.kernel.org/r/20251021110004.2209008-1-william.kucharski@oracle.com
Fixes: 20c2df83d25c ("mm: Remove slab destructors from kmem_cache_create().")
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: Christoph Lameter (Ampere) <cl@gentwo.org>
Acked-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

William Kucharski and committed by
Andrew Morton
fe62415c 2da6fe91

+5 -5
+5 -5
mm/slub.c
··· 7901 7901 * permitted to overwrite the first word of the object on 7902 7902 * kmem_cache_free. 7903 7903 * 7904 - * This is the case if we do RCU, have a constructor or 7905 - * destructor, are poisoning the objects, or are 7906 - * redzoning an object smaller than sizeof(void *) or are 7907 - * redzoning an object with slub_debug_orig_size() enabled, 7908 - * in which case the right redzone may be extended. 7904 + * This is the case if we do RCU, have a constructor, are 7905 + * poisoning the objects, or are redzoning an object smaller 7906 + * than sizeof(void *) or are redzoning an object with 7907 + * slub_debug_orig_size() enabled, in which case the right 7908 + * redzone may be extended. 7909 7909 * 7910 7910 * The assumption that s->offset >= s->inuse means free 7911 7911 * pointer is outside of the object is used in the