Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287336
b: refs/heads/master
c: dc90860
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Feb 9, 2012
1 parent 947e41e commit f0ea6a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 1ecd3c7ea76488c63b4b0a2561fd7eaf96cc8028
refs/heads/master: dc9086004b3d5db75997a645b3fe08d9138b7ad0
11 changes: 10 additions & 1 deletion trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,17 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone,
continue;
nr_scanned++;

/* Get the page and skip if free */
/*
* Get the page and ensure the page is within the same zone.
* See the comment in isolate_freepages about overlapping
* nodes. It is deliberate that the new zone lock is not taken
* as memory compaction should not move pages between nodes.
*/
page = pfn_to_page(low_pfn);
if (page_zone(page) != zone)
continue;

/* Skip if free */
if (PageBuddy(page))
continue;

Expand Down

0 comments on commit f0ea6a3

Please sign in to comment.