Skip to content

Commit eb52c0f

Browse files
hygonitehcaster
authored andcommitted
mm: Make SLAB_MERGE_DEFAULT depend on SL[AU]B
SLOB always manage objects of different caches in same page regardless of SLAB_MERGE_DEFAULT. Because it has no effect on SLOB, make it depend on SLAB || SLUB. Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Link: https://lore.kernel.org/r/20211225060921.13584-1-42.hyeyoo@gmail.com
1 parent a7904a5 commit eb52c0f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

init/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1933,6 +1933,7 @@ endchoice
19331933
config SLAB_MERGE_DEFAULT
19341934
bool "Allow slab caches to be merged"
19351935
default y
1936+
depends on SLAB || SLUB
19361937
help
19371938
For reduced kernel memory fragmentation, slab caches can be
19381939
merged when they share the same size and other characteristics.

0 commit comments

Comments
 (0)