]> git.ipfire.org Git - thirdparty/linux.git/commit
mm/slab: decouple SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXT
authorHarry Yoo (Oracle) <harry@kernel.org>
Mon, 13 Jul 2026 14:28:50 +0000 (23:28 +0900)
committerVlastimil Babka (SUSE) <vbabka@kernel.org>
Tue, 14 Jul 2026 14:43:34 +0000 (16:43 +0200)
commit982e31382d9a1a3c8c4e6a13702a53711f4efe9f
treecd9e215935e28bfd28cfd68ea0f8af65a8ce8dcb
parent1dba91a0493b7ffe9cbbcf7a8df1b361ddcac515
mm/slab: decouple SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXT

Bootstrap caches are created with SLAB_NO_OBJ_EXT to disallow sheaves
and obj_exts.

To allow disabling obj_exts while allowing sheaves, decouple
SLAB_NO_SHEAVES from SLAB_NO_OBJ_EXT. Bootstrap caches now have both
SLAB_NO_SHEAVES and SLAB_NO_OBJ_EXT.

No functional change intended.

Reviewed-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Signed-off-by: Harry Yoo (Oracle) <harry@kernel.org>
Reviewed-by: Suren Baghdasaryan <surenb@google.com>
Link: https://patch.msgid.link/20260713-kmalloc-no-objext-v3-2-47c7bd138de7@kernel.org
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
include/linux/slab.h
mm/slub.c