diff options
author | Tahsin Erdogan <tahsin@google.com> | 2017-02-25 12:59:26 -0800 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-03-06 15:56:55 -0500 |
commit | 8a1df543de8ad879d3c80bdda4c67ac4f82e7ee0 (patch) | |
tree | 179da833e071a181a9698158b37b7a582bca3176 /mm/percpu-vm.c | |
parent | 320661b08dd6f1746d5c7ab4eb435ec64b97cd45 (diff) | |
download | linux-8a1df543de8ad879d3c80bdda4c67ac4f82e7ee0.tar.gz linux-8a1df543de8ad879d3c80bdda4c67ac4f82e7ee0.tar.bz2 linux-8a1df543de8ad879d3c80bdda4c67ac4f82e7ee0.zip |
percpu: remove unused chunk_alloc parameter from pcpu_get_pages()
pcpu_get_pages() doesn't use chunk_alloc parameter, remove it.
Fixes: fbbb7f4e149f ("percpu: remove the usage of separate populated bitmap in percpu-vm")
Signed-off-by: Tahsin Erdogan <tahsin@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm/percpu-vm.c')
-rw-r--r-- | mm/percpu-vm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mm/percpu-vm.c b/mm/percpu-vm.c index 538998a137d2..9ac639499bd1 100644 --- a/mm/percpu-vm.c +++ b/mm/percpu-vm.c @@ -21,7 +21,6 @@ static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk, /** * pcpu_get_pages - get temp pages array - * @chunk: chunk of interest * * Returns pointer to array of pointers to struct page which can be indexed * with pcpu_page_idx(). Note that there is only one array and accesses @@ -30,7 +29,7 @@ static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk, * RETURNS: * Pointer to temp pages array on success. */ -static struct page **pcpu_get_pages(struct pcpu_chunk *chunk_alloc) +static struct page **pcpu_get_pages(void) { static struct page **pages; size_t pages_size = pcpu_nr_units * pcpu_unit_pages * sizeof(pages[0]); @@ -275,7 +274,7 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk, { struct page **pages; - pages = pcpu_get_pages(chunk); + pages = pcpu_get_pages(); if (!pages) return -ENOMEM; @@ -313,7 +312,7 @@ static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, * successful population attempt so the temp pages array must * be available now. */ - pages = pcpu_get_pages(chunk); + pages = pcpu_get_pages(); BUG_ON(!pages); /* unmap and free */ |