Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5493
b: refs/heads/master
c: 94d2ac6
h: refs/heads/master
i:
  5491: c0f9ae6
v: v3
  • Loading branch information
Ravikiran G Thirumalai authored and Linus Torvalds committed Jul 29, 2005
1 parent 66460f0 commit 8fffa29
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 590f47a1d945c611530a85057e9ad7a3bbb50578
refs/heads/master: 94d2ac66c12397e2ca7988dbf59f24a966d275cb
8 changes: 8 additions & 0 deletions trunk/arch/i386/mm/discontig.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,14 @@ static unsigned long calculate_numa_remap_pages(void)
/* now the roundup is correct, convert to PAGE_SIZE pages */
size = size * PTRS_PER_PTE;

if (node_end_pfn[nid] & (PTRS_PER_PTE-1)) {
/*
* Adjust size if node_end_pfn is not on a proper
* pmd boundary. remap_numa_kva will barf otherwise.
*/
size += node_end_pfn[nid] & (PTRS_PER_PTE-1);
}

/*
* Validate the region we are allocating only contains valid
* pages.
Expand Down

0 comments on commit 8fffa29

Please sign in to comment.