Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356484
b: refs/heads/master
c: 2a6f512
h: refs/heads/master
v: v3
  • Loading branch information
Srinivas Pandruvada authored and Linus Torvalds committed Feb 24, 2013
1 parent b3615d5 commit 23bd3df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ffb22af5b7a5d6c04eec22253d6d368bc8e6cd3d
refs/heads/master: 2a6f512412c7aecd04134721ea392cc496e6c017
8 changes: 5 additions & 3 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5806,9 +5806,11 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
0, false, MIGRATE_SYNC,
MR_CMA);
}

putback_movable_pages(&cc->migratepages);
return ret > 0 ? 0 : ret;
if (ret < 0) {
putback_movable_pages(&cc->migratepages);
return ret;
}
return 0;
}

/**
Expand Down

0 comments on commit 23bd3df

Please sign in to comment.