summaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2022-10-24 10:14:35 +0200
committerVlastimil Babka <vbabka@suse.cz>2022-11-21 10:19:46 +0100
commita0dc161ae77377ae770b5626bce9b72cff5d9ed6 (patch)
treeb91141ccb0515b01b8190fd829ea7cfe9d86f093 /.cocciconfig
parentpercpu: adjust the value of PERCPU_DYNAMIC_EARLY_SIZE (diff)
downloadlinux-a0dc161ae77377ae770b5626bce9b72cff5d9ed6.tar.xz
linux-a0dc161ae77377ae770b5626bce9b72cff5d9ed6.zip
mm/slub, percpu: correct the calculation of early percpu allocation size
SLUB allocator relies on percpu allocator to initialize its ->cpu_slab during early boot. For that, the dynamic chunk of percpu which serves the early allocation need be large enough to satisfy the kmalloc creation. However, the current BUILD_BUG_ON() in alloc_kmem_cache_cpus() doesn't consider the kmalloc array with NR_KMALLOC_TYPES length. Fix that with correct calculation. Signed-off-by: Baoquan He <bhe@redhat.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Roman Gushchin <roman.gushchin@linux.dev> Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Acked-by: Dennis Zhou <dennis@kernel.org> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions