diff options
Diffstat (limited to 'mm/memory_hotplug.c')
| -rw-r--r-- | mm/memory_hotplug.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 1ae2b2cc3a54..70df5c0d957e 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c | |||
| @@ -91,8 +91,8 @@ static void grow_zone_span(struct zone *zone, | |||
| 91 | if (start_pfn < zone->zone_start_pfn) | 91 | if (start_pfn < zone->zone_start_pfn) | 
| 92 | zone->zone_start_pfn = start_pfn; | 92 | zone->zone_start_pfn = start_pfn; | 
| 93 | 93 | ||
| 94 | if (end_pfn > old_zone_end_pfn) | 94 | zone->spanned_pages = max(old_zone_end_pfn, end_pfn) - | 
| 95 | zone->spanned_pages = end_pfn - zone->zone_start_pfn; | 95 | zone->zone_start_pfn; | 
| 96 | 96 | ||
| 97 | zone_span_writeunlock(zone); | 97 | zone_span_writeunlock(zone); | 
| 98 | } | 98 | } | 
| @@ -106,8 +106,8 @@ static void grow_pgdat_span(struct pglist_data *pgdat, | |||
| 106 | if (start_pfn < pgdat->node_start_pfn) | 106 | if (start_pfn < pgdat->node_start_pfn) | 
| 107 | pgdat->node_start_pfn = start_pfn; | 107 | pgdat->node_start_pfn = start_pfn; | 
| 108 | 108 | ||
| 109 | if (end_pfn > old_pgdat_end_pfn) | 109 | pgdat->node_spanned_pages = max(old_pgdat_end_pfn, end_pfn) - | 
| 110 | pgdat->node_spanned_pages = end_pfn - pgdat->node_start_pfn; | 110 | pgdat->node_start_pfn; | 
| 111 | } | 111 | } | 
| 112 | 112 | ||
| 113 | int online_pages(unsigned long pfn, unsigned long nr_pages) | 113 | int online_pages(unsigned long pfn, unsigned long nr_pages) | 
