hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/mm/percpu-vm.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * mm/percpu-vm.c - vmalloc area based chunk allocation
34 *
45 * Copyright (C) 2010 SUSE Linux Products GmbH
56 * Copyright (C) 2010 Tejun Heo <tj@kernel.org>
6
- *
7
- * This file is released under the GPLv2.
87 *
98 * Chunks are mapped into vmalloc areas and populated page by page.
109 * This is the default chunk allocator.
....@@ -329,12 +328,13 @@
329328 pcpu_free_pages(chunk, pages, page_start, page_end);
330329 }
331330
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)
333333 {
334334 struct pcpu_chunk *chunk;
335335 struct vm_struct **vms;
336336
337
- chunk = pcpu_alloc_chunk(gfp);
337
+ chunk = pcpu_alloc_chunk(type, gfp);
338338 if (!chunk)
339339 return NULL;
340340