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 <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a7904a5 commit eb52c0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)