Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332470
b: refs/heads/master
c: beb51ea
h: refs/heads/master
v: v3
  • Loading branch information
Minchan Kim authored and Linus Torvalds committed Oct 9, 2012
1 parent 04e8cff commit 942f943
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: e46a28790e594c0876d1a84270926abf75460f61
refs/heads/master: beb51eaa88238daba698ad837222ad277d440b6d
6 changes: 4 additions & 2 deletions trunk/mm/page_alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5674,7 +5674,7 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
unsigned long start, unsigned long end)
{
/* This function is based on compact_zone() from compaction.c. */

unsigned long nr_reclaimed;
unsigned long pfn = start;
unsigned int tries = 0;
int ret = 0;
Expand All @@ -5701,7 +5701,9 @@ static int __alloc_contig_migrate_range(struct compact_control *cc,
break;
}

reclaim_clean_pages_from_list(cc->zone, &cc->migratepages);
nr_reclaimed = reclaim_clean_pages_from_list(cc->zone,
&cc->migratepages);
cc->nr_migratepages -= nr_reclaimed;

ret = migrate_pages(&cc->migratepages,
alloc_migrate_target,
Expand Down

0 comments on commit 942f943

Please sign in to comment.