mm, slub: disable SYSFS support with CONFIG_SLUB_TINY
authorVlastimil Babka <vbabka@suse.cz>
Mon, 14 Nov 2022 17:18:39 +0000 (18:18 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Sun, 27 Nov 2022 22:38:09 +0000 (23:38 +0100)
commitb1a413a39a1a7694acf3636a52c109821148ecdd
treedcdb57ca0dd2469b770e897355644ddc1990c3a9
parente240e53ae0abb0896e0f399bdfef41c69cec3123
mm, slub: disable SYSFS support with CONFIG_SLUB_TINY

Currently SLUB enables its sysfs support depending unconditionally on
the general CONFIG_SYSFS setting. To reduce the configuration
combination space, make CONFIG_SLUB_TINY disable SLUB's sysfs support by
reusing the existing SLAB_SUPPORTS_SYSFS define. It is unlikely that
real tiny systems would combine CONFIG_SLUB_TINY with CONFIG_SYSFS, but
a randconfig might.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
include/linux/slub_def.h
mm/slub.c