hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
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