Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356560
b: refs/heads/master
c: 3abef4e
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Feb 24, 2013
1 parent 4a0f780 commit 9ee358a
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: 34f0315adb58af3b01f59d05b2bce267474e71cb
refs/heads/master: 3abef4e6c23feef4aa9ab161ae138d6d39ae69f3
6 changes: 4 additions & 2 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ int migrate_vmas(struct mm_struct *mm, const nodemask_t *to,
* pages. Currently it only checks the watermarks which crude
*/
static bool migrate_balanced_pgdat(struct pglist_data *pgdat,
int nr_migrate_pages)
unsigned long nr_migrate_pages)
{
int z;
for (z = pgdat->nr_zones - 1; z >= 0; z--) {
Expand Down Expand Up @@ -1559,8 +1559,10 @@ int numamigrate_isolate_page(pg_data_t *pgdat, struct page *page)
{
int ret = 0;

VM_BUG_ON(compound_order(page) && !PageTransHuge(page));

/* Avoid migrating to a node that is nearly full */
if (migrate_balanced_pgdat(pgdat, 1)) {
if (migrate_balanced_pgdat(pgdat, 1UL << compound_order(page))) {
int page_lru;

if (isolate_lru_page(page)) {
Expand Down

0 comments on commit 9ee358a

Please sign in to comment.