Commit 8a1df543 authored by Tahsin Erdogan's avatar Tahsin Erdogan Committed by Tejun Heo

percpu: remove unused chunk_alloc parameter from pcpu_get_pages()

pcpu_get_pages() doesn't use chunk_alloc parameter, remove it.

Fixes: fbbb7f4e ("percpu: remove the usage of separate populated bitmap in percpu-vm")
Signed-off-by: default avatarTahsin Erdogan <tahsin@google.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 320661b0
...@@ -21,7 +21,6 @@ static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk, ...@@ -21,7 +21,6 @@ static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk,
/** /**
* pcpu_get_pages - get temp pages array * pcpu_get_pages - get temp pages array
* @chunk: chunk of interest
* *
* Returns pointer to array of pointers to struct page which can be indexed * 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 * 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, ...@@ -30,7 +29,7 @@ static struct page *pcpu_chunk_page(struct pcpu_chunk *chunk,
* RETURNS: * RETURNS:
* Pointer to temp pages array on success. * 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; static struct page **pages;
size_t pages_size = pcpu_nr_units * pcpu_unit_pages * sizeof(pages[0]); 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, ...@@ -275,7 +274,7 @@ static int pcpu_populate_chunk(struct pcpu_chunk *chunk,
{ {
struct page **pages; struct page **pages;
pages = pcpu_get_pages(chunk); pages = pcpu_get_pages();
if (!pages) if (!pages)
return -ENOMEM; return -ENOMEM;
...@@ -313,7 +312,7 @@ static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, ...@@ -313,7 +312,7 @@ static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk,
* successful population attempt so the temp pages array must * successful population attempt so the temp pages array must
* be available now. * be available now.
*/ */
pages = pcpu_get_pages(chunk); pages = pcpu_get_pages();
BUG_ON(!pages); BUG_ON(!pages);
/* unmap and free */ /* unmap and free */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment