Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm/slob: remove CONFIG_SLOB

Remove SLOB from Kconfig and Makefile. Everything under #ifdef
CONFIG_SLOB, and mm/slob.c is now dead code.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Acked-by: Lorenzo Stoakes <lstoakes@gmail.com>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>

+1 -26
+1 -1
init/Kconfig
··· 973 973 974 974 config MEMCG_KMEM 975 975 bool 976 - depends on MEMCG && !SLOB 976 + depends on MEMCG 977 977 default y 978 978 979 979 config BLK_CGROUP
-1
kernel/configs/tiny.config
··· 7 7 # CONFIG_KERNEL_LZO is not set 8 8 # CONFIG_KERNEL_LZ4 is not set 9 9 # CONFIG_SLAB is not set 10 - # CONFIG_SLOB_DEPRECATED is not set 11 10 CONFIG_SLUB=y 12 11 CONFIG_SLUB_TINY=y
-22
mm/Kconfig
··· 238 238 and has enhanced diagnostics. SLUB is the default choice for 239 239 a slab allocator. 240 240 241 - config SLOB_DEPRECATED 242 - depends on EXPERT 243 - bool "SLOB (Simple Allocator - DEPRECATED)" 244 - depends on !PREEMPT_RT 245 - help 246 - Deprecated and scheduled for removal in a few cycles. SLUB 247 - recommended as replacement. CONFIG_SLUB_TINY can be considered 248 - on systems with 16MB or less RAM. 249 - 250 - If you need SLOB to stay, please contact linux-mm@kvack.org and 251 - people listed in the SLAB ALLOCATOR section of MAINTAINERS file, 252 - with your use case. 253 - 254 - SLOB replaces the stock allocator with a drastically simpler 255 - allocator. SLOB is generally more space efficient but 256 - does not perform as well on large systems. 257 - 258 241 endchoice 259 - 260 - config SLOB 261 - bool 262 - default y 263 - depends on SLOB_DEPRECATED 264 242 265 243 config SLUB_TINY 266 244 bool "Configure SLUB for minimal memory footprint"
-2
mm/Makefile
··· 22 22 # flaky coverage that is not a function of syscall inputs. E.g. slab is out of 23 23 # free pages, or a task is migrated between nodes. 24 24 KCOV_INSTRUMENT_slab_common.o := n 25 - KCOV_INSTRUMENT_slob.o := n 26 25 KCOV_INSTRUMENT_slab.o := n 27 26 KCOV_INSTRUMENT_slub.o := n 28 27 KCOV_INSTRUMENT_page_alloc.o := n ··· 80 81 obj-$(CONFIG_NUMA) += mempolicy.o 81 82 obj-$(CONFIG_SPARSEMEM) += sparse.o 82 83 obj-$(CONFIG_SPARSEMEM_VMEMMAP) += sparse-vmemmap.o 83 - obj-$(CONFIG_SLOB) += slob.o 84 84 obj-$(CONFIG_MMU_NOTIFIER) += mmu_notifier.o 85 85 obj-$(CONFIG_KSM) += ksm.o 86 86 obj-$(CONFIG_PAGE_POISONING) += page_poison.o