Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96737
b: refs/heads/master
c: c3723ca
h: refs/heads/master
i:
  96735: 74dd0b0
v: v3
  • Loading branch information
Heiko Carstens authored and Linus Torvalds committed May 15, 2008
1 parent ac4b8ad commit 60e0b63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 3b7ec117bf6c98f5a845311c4ca5ca020a3d7689
refs/heads/master: c3723ca3874a8fc2218c4726d57e3a7da9e83e47
10 changes: 3 additions & 7 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,9 @@ static int __add_zone(struct zone *zone, unsigned long phys_start_pfn)
int zone_type;

zone_type = zone - pgdat->node_zones;
if (!zone->wait_table) {
int ret = 0;
ret = init_currently_empty_zone(zone, phys_start_pfn,
nr_pages, MEMMAP_HOTPLUG);
if (ret < 0)
return ret;
}
if (!zone->wait_table)
return init_currently_empty_zone(zone, phys_start_pfn,
nr_pages, MEMMAP_HOTPLUG);
memmap_init_zone(nr_pages, nid, zone_type,
phys_start_pfn, MEMMAP_HOTPLUG);
return 0;
Expand Down

0 comments on commit 60e0b63

Please sign in to comment.