Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217497
b: refs/heads/master
c: f3ab263
h: refs/heads/master
i:
  217495: f947b61
v: v3
  • Loading branch information
Bob Liu authored and Linus Torvalds committed Oct 26, 2010
1 parent 2c21380 commit 57ee5d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 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: 809c444977adb7313e0612e9e3af4b73ba3f5746
refs/heads/master: f3ab2636c5c1dd9ab0ff53a46d8354d5769ffdd4
21 changes: 9 additions & 12 deletions trunk/mm/memory_hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,24 +705,21 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn)
check this again here. */
if (page_count(page)) {
not_managed++;
ret = -EBUSY;
break;
}
}
}
ret = -EBUSY;
if (not_managed) {
if (!list_empty(&source))
if (!list_empty(&source)) {
if (not_managed) {
putback_lru_pages(&source);
goto out;
}
/* this function returns # of failed pages */
ret = migrate_pages(&source, hotremove_migrate_alloc, 0, 1);
if (ret)
putback_lru_pages(&source);
goto out;
}
ret = 0;
if (list_empty(&source))
goto out;
/* this function returns # of failed pages */
ret = migrate_pages(&source, hotremove_migrate_alloc, 0, 1);
if (ret)
putback_lru_pages(&source);

out:
return ret;
}
Expand Down

0 comments on commit 57ee5d3

Please sign in to comment.