From: Peng Fan Date: Sun, 24 Feb 2019 13:13:50 +0000 (+0000) Subject: percpu: km: no need to consider pcpu_group_offsets[0] X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1b046b445c0f856c3c1eed38a348bd87cc2dc730;p=linux.git percpu: km: no need to consider pcpu_group_offsets[0] percpu-km is used on UP systems which only has one group, so the group offset will be always 0, there is no need to subtract pcpu_group_offsets[0] when assigning chunk->base_addr Signed-off-by: Peng Fan Acked-by: Christoph Lameter Signed-off-by: Dennis Zhou --- diff --git a/mm/percpu-km.c b/mm/percpu-km.c index 0f643dc2dc658..b68d5df147317 100644 --- a/mm/percpu-km.c +++ b/mm/percpu-km.c @@ -67,7 +67,7 @@ static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) pcpu_set_page_chunk(nth_page(pages, i), chunk); chunk->data = pages; - chunk->base_addr = page_address(pages) - pcpu_group_offsets[0]; + chunk->base_addr = page_address(pages); spin_lock_irqsave(&pcpu_lock, flags); pcpu_chunk_populated(chunk, 0, nr_pages, false);