Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27041
b: refs/heads/master
c: 25a6df9
h: refs/heads/master
i:
  27039: 73aa7e0
v: v3
  • Loading branch information
Yasunori Goto authored and Linus Torvalds committed May 31, 2006
1 parent 64e0416 commit 114b2ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 308af9290ad1844c1b4e93ff4919f8009efbe018
refs/heads/master: 25a6df952542ad9f284421b6ffe28f3eb3df1305
8 changes: 4 additions & 4 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ static void grow_zone_span(struct zone *zone,
if (start_pfn < zone->zone_start_pfn)
zone->zone_start_pfn = start_pfn;

if (end_pfn > old_zone_end_pfn)
zone->spanned_pages = end_pfn - zone->zone_start_pfn;
zone->spanned_pages = max(old_zone_end_pfn, end_pfn) -
zone->zone_start_pfn;

zone_span_writeunlock(zone);
}
Expand All @@ -106,8 +106,8 @@ static void grow_pgdat_span(struct pglist_data *pgdat,
if (start_pfn < pgdat->node_start_pfn)
pgdat->node_start_pfn = start_pfn;

if (end_pfn > old_pgdat_end_pfn)
pgdat->node_spanned_pages = end_pfn - pgdat->node_start_pfn;
pgdat->node_spanned_pages = max(old_pgdat_end_pfn, end_pfn) -
pgdat->node_start_pfn;
}

int online_pages(unsigned long pfn, unsigned long nr_pages)
Expand Down

0 comments on commit 114b2ab

Please sign in to comment.