From: Joonsoo Kim Date: Mon, 29 Oct 2012 13:59:58 +0000 (+0900) Subject: percpu: make pcpu_free_chunk() use pcpu_mem_free() instead of kfree() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b4916cb17c261a6043bcb2a98d0d6512497a7cf8;p=linux-beck.git percpu: make pcpu_free_chunk() use pcpu_mem_free() instead of kfree() commit 099a19d9('allow limited allocation before slab is online') made pcpu_alloc_chunk() use pcpu_mem_zalloc() but forgot to update pcpu_free_chunk() accordingly. This doesn't cause any immediate problema, but fix it for consistency. tj: commit message updated Signed-off-by: Joonsoo Kim Cc: Christoph Lameter Signed-off-by: Tejun Heo --- diff --git a/mm/percpu.c b/mm/percpu.c index ddc5efb9c5bb..ec2589616e7d 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -631,7 +631,7 @@ static void pcpu_free_chunk(struct pcpu_chunk *chunk) if (!chunk) return; pcpu_mem_free(chunk->map, chunk->map_alloc * sizeof(chunk->map[0])); - kfree(chunk); + pcpu_mem_free(chunk, pcpu_chunk_struct_size); } /*