Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234876
b: refs/heads/master
c: 775ee85
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Feb 16, 2011
1 parent 8f68bf3 commit 9e21676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: c88aea7a70b0f014f98c695069ba91abc9e9b9a4
refs/heads/master: 775ee85d7bff8ce7c7eccde90eda400658b650a3
12 changes: 2 additions & 10 deletions trunk/arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,15 +768,7 @@ static int __init split_nodes_interleave(struct numa_meminfo *ei,
memblock_x86_hole_size(end, physnodes[i].end) < size)
end = physnodes[i].end;

/*
* Avoid allocating more nodes than requested, which can
* happen as a result of rounding down each node's size
* to FAKE_NODE_MIN_SIZE.
*/
if (nodes_weight(physnode_mask) + nid >= nr_nodes)
end = physnodes[i].end;

ret = emu_setup_memblk(ei, nid++, i,
ret = emu_setup_memblk(ei, nid++ % nr_nodes, i,
physnodes[i].start,
min(end, physnodes[i].end));
if (ret < 0)
Expand Down Expand Up @@ -873,7 +865,7 @@ static int __init split_nodes_size_interleave(struct numa_meminfo *ei,
memblock_x86_hole_size(end, physnodes[i].end) < size)
end = physnodes[i].end;

ret = emu_setup_memblk(ei, nid++, i,
ret = emu_setup_memblk(ei, nid++ % MAX_NUMNODES, i,
physnodes[i].start,
min(end, physnodes[i].end));
if (ret < 0)
Expand Down

0 comments on commit 9e21676

Please sign in to comment.