Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308889
b: refs/heads/master
c: 4e2f077
h: refs/heads/master
i:
  308887: 9730c5e
v: v3
  • Loading branch information
Gavin Shan authored and Linus Torvalds committed May 29, 2012
1 parent ea28e85 commit 91256b4
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: 5bf5f03c271907978489868a4c72aeb42b5127d2
refs/heads/master: 4e2f07750d9a94e8f23e86408df5ab95be88bf11
5 changes: 3 additions & 2 deletions trunk/mm/memblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,15 @@ static int __init_memblock memblock_double_array(struct memblock_type *type)
if (use_slab) {
new_array = kmalloc(new_size, GFP_KERNEL);
addr = new_array ? __pa(new_array) : 0;
} else
} else {
addr = memblock_find_in_range(0, MEMBLOCK_ALLOC_ACCESSIBLE, new_size, sizeof(phys_addr_t));
new_array = addr ? __va(addr) : 0;
}
if (!addr) {
pr_err("memblock: Failed to double %s array from %ld to %ld entries !\n",
memblock_type_name(type), type->max, type->max * 2);
return -1;
}
new_array = __va(addr);

memblock_dbg("memblock: %s array is doubled to %ld at [%#010llx-%#010llx]",
memblock_type_name(type), type->max * 2, (u64)addr, (u64)addr + new_size - 1);
Expand Down

0 comments on commit 91256b4

Please sign in to comment.