Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175899
b: refs/heads/master
c: b7a4c94
h: refs/heads/master
i:
  175897: c3b1479
  175895: 76440fb
v: v3
  • Loading branch information
Tejun Heo committed Oct 12, 2009
1 parent 647f74b commit c934330
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e800879d50c5a528d40191528557b1bdfbccbd42
refs/heads/master: b7a4c946d0dfa91c28029756e8861eaa691fbbc3
5 changes: 3 additions & 2 deletions trunk/mm/percpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1868,13 +1868,14 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, ssize_t dyn_size,
max_distance = 0;
for (group = 0; group < ai->nr_groups; group++) {
ai->groups[group].base_offset = areas[group] - base;
max_distance = max(max_distance, ai->groups[group].base_offset);
max_distance = max_t(size_t, max_distance,
ai->groups[group].base_offset);
}
max_distance += ai->unit_size;

/* warn if maximum distance is further than 75% of vmalloc space */
if (max_distance > (VMALLOC_END - VMALLOC_START) * 3 / 4) {
pr_warning("PERCPU: max_distance=0x%lx too large for vmalloc "
pr_warning("PERCPU: max_distance=0x%zx too large for vmalloc "
"space 0x%lx\n",
max_distance, VMALLOC_END - VMALLOC_START);
#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
Expand Down

0 comments on commit c934330

Please sign in to comment.