mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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
This commit is contained in:
parent
a7904a5389
commit
eb52c0fc23
1 changed files with 1 additions and 0 deletions
|
@ -1933,6 +1933,7 @@ endchoice
|
||||||
config SLAB_MERGE_DEFAULT
|
config SLAB_MERGE_DEFAULT
|
||||||
bool "Allow slab caches to be merged"
|
bool "Allow slab caches to be merged"
|
||||||
default y
|
default y
|
||||||
|
depends on SLAB || SLUB
|
||||||
help
|
help
|
||||||
For reduced kernel memory fragmentation, slab caches can be
|
For reduced kernel memory fragmentation, slab caches can be
|
||||||
merged when they share the same size and other characteristics.
|
merged when they share the same size and other characteristics.
|
||||||
|
|
Loading…
Reference in a new issue