diff options
author | Tejun Heo <tj@kernel.org> | 2009-08-14 15:00:50 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-08-14 15:00:50 +0900 |
commit | 3cbc85652767c38b252c8de55f9fd180b29e4c0d (patch) | |
tree | ccfedb764830dbd4a90b9517a9ad365af694c01f /mm | |
parent | 1d9d32572163b30be81dbe1409dfa7ea9763d0e8 (diff) | |
download | linux-3cbc85652767c38b252c8de55f9fd180b29e4c0d.tar.gz linux-3cbc85652767c38b252c8de55f9fd180b29e4c0d.tar.bz2 linux-3cbc85652767c38b252c8de55f9fd180b29e4c0d.zip |
percpu: add @align to pcpu_fc_alloc_fn_t
pcpu_fc_alloc_fn_t is about to see more interesting usage, add @align
parameter.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/percpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 287f59cc5fb9..3316e3aac7ee 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1578,7 +1578,7 @@ ssize_t __init pcpu_page_first_chunk(size_t reserved_size, for (i = 0; i < unit_pages; i++) { void *ptr; - ptr = alloc_fn(cpu, PAGE_SIZE); + ptr = alloc_fn(cpu, PAGE_SIZE, PAGE_SIZE); if (!ptr) { pr_warning("PERCPU: failed to allocate %s page " "for cpu%u\n", psize_str, cpu); @@ -1888,7 +1888,7 @@ ssize_t __init pcpu_lpage_first_chunk(size_t reserved_size, size_t dyn_size, goto found; continue; found: - ptr = alloc_fn(cpu, lpage_size); + ptr = alloc_fn(cpu, lpage_size, lpage_size); if (!ptr) { pr_warning("PERCPU: failed to allocate large page " "for cpu%u\n", cpu); |