| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * mm/percpu-vm.c - vmalloc area based chunk allocation |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2010 SUSE Linux Products GmbH |
|---|
| 5 | 6 | * Copyright (C) 2010 Tejun Heo <tj@kernel.org> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This file is released under the GPLv2. |
|---|
| 8 | 7 | * |
|---|
| 9 | 8 | * Chunks are mapped into vmalloc areas and populated page by page. |
|---|
| 10 | 9 | * This is the default chunk allocator. |
|---|
| .. | .. |
|---|
| 329 | 328 | pcpu_free_pages(chunk, pages, page_start, page_end); |
|---|
| 330 | 329 | } |
|---|
| 331 | 330 | |
|---|
| 332 | | -static struct pcpu_chunk *pcpu_create_chunk(gfp_t gfp) |
|---|
| 331 | +static struct pcpu_chunk *pcpu_create_chunk(enum pcpu_chunk_type type, |
|---|
| 332 | + gfp_t gfp) |
|---|
| 333 | 333 | { |
|---|
| 334 | 334 | struct pcpu_chunk *chunk; |
|---|
| 335 | 335 | struct vm_struct **vms; |
|---|
| 336 | 336 | |
|---|
| 337 | | - chunk = pcpu_alloc_chunk(gfp); |
|---|
| 337 | + chunk = pcpu_alloc_chunk(type, gfp); |
|---|
| 338 | 338 | if (!chunk) |
|---|
| 339 | 339 | return NULL; |
|---|
| 340 | 340 | |
|---|