Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96744
b: refs/heads/master
c: fd8a422
h: refs/heads/master
v: v3
  • Loading branch information
Geoff Levand authored and Linus Torvalds committed May 15, 2008
1 parent 6caa9ad commit 1928226
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 3fc957721d18c93662f7d4dab455b80f53dd2641
refs/heads/master: fd8a4221ad76df700ff34875c9fbc42302aa4ba3
9 changes: 8 additions & 1 deletion trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,15 @@ int online_pages(unsigned long pfn, unsigned long nr_pages)
if (!populated_zone(zone))
need_zonelists_rebuild = 1;

walk_memory_resource(pfn, nr_pages, &onlined_pages,
ret = walk_memory_resource(pfn, nr_pages, &onlined_pages,
online_pages_range);
if (ret) {
printk(KERN_DEBUG "online_pages %lx at %lx failed\n",
nr_pages, pfn);
memory_notify(MEM_CANCEL_ONLINE, &arg);
return ret;
}

zone->present_pages += onlined_pages;
zone->zone_pgdat->node_present_pages += onlined_pages;

Expand Down

0 comments on commit 1928226

Please sign in to comment.