summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorHyeonggon Yoo <42.hyeyoo@gmail.com>2021-12-25 09:09:21 +0300
committerVlastimil Babka <vbabka@suse.cz>2022-01-05 21:10:14 +0300
commiteb52c0fc2331f8ad1f5f9fd79ba9ce90681ed50b (patch)
tree669e12f50c78604f9e1c67629cfe956c075a4147 /init
parenta7904a538933c525096ca2ccde1e60d0ee62c08e (diff)
downloadlinux-eb52c0fc2331f8ad1f5f9fd79ba9ce90681ed50b.tar.xz
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
Diffstat (limited to 'init')
-rw-r--r--init/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig
index 4b7bac10c72d..03e1b863f5ce 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -1933,6 +1933,7 @@ endchoice
config SLAB_MERGE_DEFAULT
bool "Allow slab caches to be merged"
default y
+ depends on SLAB || SLUB
help
For reduced kernel memory fragmentation, slab caches can be
merged when they share the same size and other characteristics.