diff options
author | Joonsoo Kim <js1304@gmail.com> | 2012-10-29 22:59:58 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2012-10-29 08:49:47 -0700 |
commit | b4916cb17c261a6043bcb2a98d0d6512497a7cf8 (patch) | |
tree | 1a8a2282cb0ef22588464f180a5f453283f12bd8 /mm/percpu.c | |
parent | 6b0cb4eef7bdaa27b8021ea81813fba330a2d94d (diff) | |
download | linux-3.10-b4916cb17c261a6043bcb2a98d0d6512497a7cf8.tar.gz linux-3.10-b4916cb17c261a6043bcb2a98d0d6512497a7cf8.tar.bz2 linux-3.10-b4916cb17c261a6043bcb2a98d0d6512497a7cf8.zip |
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 <js1304@gmail.com>
Cc: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index ddc5efb9c5b..ec2589616e7 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); } /* |