Message ID | 20211225060921.13584-1-42.hyeyoo@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm: Make SLAB_MERGE_DEFAULT depend on SL[AU]B | expand |
On 12/25/21 07:09, Hyeonggon Yoo wrote: > 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> I will take this to the slab tree, thanks! > --- > init/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > 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.
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.
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> --- init/Kconfig | 1 + 1 file changed, 1 insertion(+)