mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINY
authorVlastimil Babka <vbabka@suse.cz>
Wed, 16 Nov 2022 15:48:23 +0000 (16:48 +0100)
committerVlastimil Babka <vbabka@suse.cz>
Sun, 27 Nov 2022 22:40:39 +0000 (23:40 +0100)
commit3d97d976e5d58554570003ca5297a67142ae4e29
treebb012bd3333c67ecd04e89282d3b32ab3153a6d8
parent2f7c1c1396b587e8cfe18a1f0d628cedaae56b6a
mm, slab: ignore SLAB_RECLAIM_ACCOUNT with CONFIG_SLUB_TINY

SLAB_RECLAIM_ACCOUNT caches allocate their slab pages with
__GFP_RECLAIMABLE and can help against fragmentation by grouping pages
by mobility, but on tiny systems mobility grouping is likely disabled
anyway and ignoring SLAB_RECLAIM_ACCOUNT might instead lead to merging
of caches that are made incompatible just by the flag.

Thus with CONFIG_SLUB_TINY, make SLAB_RECLAIM_ACCOUNT ineffective.

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/slab.h