Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336245
b: refs/heads/master
c: 60177d3
h: refs/heads/master
i:
  336243: da85f85
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Dec 6, 2012
1 parent 9891b90 commit fac1dfc
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 04c5decdc0aecde43bf44860484f26ee0691335f
refs/heads/master: 60177d31d215bc2b4c5a7aa6f742800e04fa0a92
10 changes: 9 additions & 1 deletion trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,15 @@ static void isolate_freepages(struct zone *zone,

/* Found a block suitable for isolating free pages from */
isolated = 0;
end_pfn = min(pfn + pageblock_nr_pages, zone_end_pfn);

/*
* As pfn may not start aligned, pfn+pageblock_nr_page
* may cross a MAX_ORDER_NR_PAGES boundary and miss
* a pfn_valid check. Ensure isolate_freepages_block()
* only scans within a pageblock
*/
end_pfn = ALIGN(pfn + 1, pageblock_nr_pages);
end_pfn = min(end_pfn, zone_end_pfn);
isolated = isolate_freepages_block(cc, pfn, end_pfn,
freelist, false);
nr_freepages += isolated;
Expand Down

0 comments on commit fac1dfc

Please sign in to comment.