Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164451
b: refs/heads/master
c: 4738e1b
h: refs/heads/master
i:
  164449: 27f9875
  164447: 2f36e9a
v: v3
  • Loading branch information
Jan Beulich authored and Linus Torvalds committed Sep 22, 2009
1 parent a6e1ddf commit 9832009
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 78986a678f6ec3759a01976749f4437d8bf2d6c3
refs/heads/master: 4738e1b9cf8f9e28d7de080a5e6ce5d0095ea18f
6 changes: 4 additions & 2 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,11 @@ EXPORT_SYMBOL_GPL(__remove_pages);

void online_page(struct page *page)
{
unsigned long pfn = page_to_pfn(page);

totalram_pages++;
num_physpages++;
if (pfn >= num_physpages)
num_physpages = pfn + 1;

#ifdef CONFIG_HIGHMEM
if (PageHighMem(page))
Expand Down Expand Up @@ -832,7 +835,6 @@ int offline_pages(unsigned long start_pfn,
zone->present_pages -= offlined_pages;
zone->zone_pgdat->node_present_pages -= offlined_pages;
totalram_pages -= offlined_pages;
num_physpages -= offlined_pages;

setup_per_zone_wmarks();
calculate_zone_inactive_ratio(zone);
Expand Down

0 comments on commit 9832009

Please sign in to comment.