]> xenbits.xensource.com Git - people/aperard/linux.git/commitdiff
mm: Make SLAB_MERGE_DEFAULT depend on SL[AU]B
authorHyeonggon Yoo <42.hyeyoo@gmail.com>
Sat, 25 Dec 2021 06:09:21 +0000 (06:09 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Wed, 5 Jan 2022 18:10:14 +0000 (19:10 +0100)
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
init/Kconfig

index 4b7bac10c72d30db71b12347cb5d6c290ae8c156..03e1b863f5ce1d931f561091b34afbcf451d1146 100644 (file)
@@ -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.