Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63000
b: refs/heads/master
c: b5445f9
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Jul 26, 2007
1 parent 9a366ce commit 05f9d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: ee2077d97b2f392cfc0b884775ac58aa9b9b8c8f
refs/heads/master: b5445f956ec3c8c19b760775e9ff92a160e3a167
6 changes: 3 additions & 3 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2775,11 +2775,11 @@ unsigned long __meminit __absent_pages_in_range(int nid,
if (i == -1)
return 0;

prev_end_pfn = min(early_node_map[i].start_pfn, range_end_pfn);

/* Account for ranges before physical memory on this node */
if (early_node_map[i].start_pfn > range_start_pfn)
hole_pages = early_node_map[i].start_pfn - range_start_pfn;

prev_end_pfn = early_node_map[i].start_pfn;
hole_pages = prev_end_pfn - range_start_pfn;

/* Find all holes for the zone within the node */
for (; i != -1; i = next_active_region_index_in_nid(i, nid)) {
Expand Down

0 comments on commit 05f9d09

Please sign in to comment.