Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115875
b: refs/heads/master
c: de7f0cb
h: refs/heads/master
i:
  115873: 9895c7d
  115871: 31cfd7b
v: v3
  • Loading branch information
Nathan Fontenot authored and Linus Torvalds committed Oct 20, 2008
1 parent 2e00a63 commit 8266ece
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 7a6560e02556b6f0a798c247f3a557c523d9701b
refs/heads/master: de7f0cba96786cf9ec9da4532c1b25f733da9b6f
4 changes: 2 additions & 2 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,11 @@ int __remove_pages(struct zone *zone, unsigned long phys_start_pfn,
BUG_ON(phys_start_pfn & ~PAGE_SECTION_MASK);
BUG_ON(nr_pages % PAGES_PER_SECTION);

release_mem_region(phys_start_pfn << PAGE_SHIFT, nr_pages * PAGE_SIZE);

sections_to_remove = nr_pages / PAGES_PER_SECTION;
for (i = 0; i < sections_to_remove; i++) {
unsigned long pfn = phys_start_pfn + i*PAGES_PER_SECTION;
release_mem_region(pfn << PAGE_SHIFT,
PAGES_PER_SECTION << PAGE_SHIFT);
ret = __remove_section(zone, __pfn_to_section(pfn));
if (ret)
break;
Expand Down

0 comments on commit 8266ece

Please sign in to comment.