diff options
Diffstat (limited to 'mm/compaction.c')
-rw-r--r-- | mm/compaction.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/compaction.c b/mm/compaction.c index 94bdbe1f7caf..cf7086c6dc07 100644 --- a/mm/compaction.c +++ b/mm/compaction.c | |||
@@ -480,7 +480,8 @@ unsigned long compaction_suitable(struct zone *zone, int order) | |||
480 | * fragmentation index determines if allocation failures are due to | 480 | * fragmentation index determines if allocation failures are due to |
481 | * low memory or external fragmentation | 481 | * low memory or external fragmentation |
482 | * | 482 | * |
483 | * index of -1 implies allocations might succeed dependingon watermarks | 483 | * index of -1000 implies allocations might succeed depending on |
484 | * watermarks | ||
484 | * index towards 0 implies failure is due to lack of memory | 485 | * index towards 0 implies failure is due to lack of memory |
485 | * index towards 1000 implies failure is due to fragmentation | 486 | * index towards 1000 implies failure is due to fragmentation |
486 | * | 487 | * |
@@ -490,7 +491,8 @@ unsigned long compaction_suitable(struct zone *zone, int order) | |||
490 | if (fragindex >= 0 && fragindex <= sysctl_extfrag_threshold) | 491 | if (fragindex >= 0 && fragindex <= sysctl_extfrag_threshold) |
491 | return COMPACT_SKIPPED; | 492 | return COMPACT_SKIPPED; |
492 | 493 | ||
493 | if (fragindex == -1 && zone_watermark_ok(zone, order, watermark, 0, 0)) | 494 | if (fragindex == -1000 && zone_watermark_ok(zone, order, watermark, |
495 | 0, 0)) | ||
494 | return COMPACT_PARTIAL; | 496 | return COMPACT_PARTIAL; |
495 | 497 | ||
496 | return COMPACT_CONTINUE; | 498 | return COMPACT_CONTINUE; |