Skip to content

Commit

Permalink
[PATCH] x86_64: Fix incorrect node_present_pages on NUMA
Browse files Browse the repository at this point in the history
Currently, we do not pass the correct start_pfn to e820_hole_size, to
calculate holes.  Following patch fixes that.

The bug results in incorrect number of node_present_pages for each pgdat
and causes ugly output in /sys and probably VM inbalances.

Signed-off-by: Alok N Kataria <[email protected]>
Signed-off-by: Ravikiran Thirumalai <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Sighed-off-by: Shair Fultheim <[email protected]>
Sighed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Ravikiran G Thirumalai authored and Linus Torvalds committed Dec 29, 2005
1 parent f873e3e commit 576fc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ size_zones(unsigned long *z, unsigned long *h,
}

/* Compute holes */
w = 0;
w = start_pfn;
for (i = 0; i < MAX_NR_ZONES; i++) {
unsigned long s = w;
w += z[i];
Expand Down

0 comments on commit 576fc09

Please sign in to comment.