Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 356494
b: refs/heads/master
c: a9aacbc
h: refs/heads/master
v: v3
  • Loading branch information
Mel Gorman authored and Linus Torvalds committed Feb 24, 2013
1 parent 7ed926e commit 9f7fcb4
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 62b726c1b3cde6ab49304e8c1af41950ed855c3c
refs/heads/master: a9aacbccf3145355190d87f0df1731fb84fdd8c8
5 changes: 2 additions & 3 deletions trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,7 @@ isolate_migratepages_range(struct zone *zone, struct compact_control *cc,
continue;

next_pageblock:
low_pfn += pageblock_nr_pages;
low_pfn = ALIGN(low_pfn, pageblock_nr_pages) - 1;
low_pfn = ALIGN(low_pfn + 1, pageblock_nr_pages) - 1;
last_pageblock_nr = pageblock_nr;
}

Expand Down Expand Up @@ -795,7 +794,7 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone,
low_pfn = max(cc->migrate_pfn, zone->zone_start_pfn);

/* Only scan within a pageblock boundary */
end_pfn = ALIGN(low_pfn + pageblock_nr_pages, pageblock_nr_pages);
end_pfn = ALIGN(low_pfn + 1, pageblock_nr_pages);

/* Do not cross the free scanner or scan within a memory hole */
if (end_pfn > cc->free_pfn || !pfn_valid(low_pfn)) {
Expand Down

0 comments on commit 9f7fcb4

Please sign in to comment.