Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292627
b: refs/heads/master
c: aad6ec3
h: refs/heads/master
i:
  292625: 1b08109
  292623: 04ea745
v: v3
  • Loading branch information
Dan Carpenter authored and Linus Torvalds committed Mar 22, 2012
1 parent 6d449cc commit d409b43
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 8575ec29f61da83a2bf382c8c490499dc022101e
refs/heads/master: aad6ec3777bf4930d4f7293745cc4c17a2d87947
4 changes: 2 additions & 2 deletions trunk/mm/compaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct compact_control {
unsigned long migrate_pfn; /* isolate_migratepages search base */
bool sync; /* Synchronous migration */

unsigned int order; /* order a direct compactor needs */
int order; /* order a direct compactor needs */
int migratetype; /* MOVABLE, RECLAIMABLE etc */
struct zone *zone;
};
Expand Down Expand Up @@ -692,7 +692,7 @@ static int __compact_pgdat(pg_data_t *pgdat, struct compact_control *cc)
INIT_LIST_HEAD(&cc->freepages);
INIT_LIST_HEAD(&cc->migratepages);

if (cc->order < 0 || !compaction_deferred(zone, cc->order))
if (cc->order == -1 || !compaction_deferred(zone, cc->order))
compact_zone(zone, cc);

if (cc->order > 0) {
Expand Down

0 comments on commit d409b43

Please sign in to comment.