aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compaction.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compaction.h')
-rw-r--r--include/linux/compaction.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/compaction.h b/include/linux/compaction.h
index 1bb58581301c..e88c037afe47 100644
--- a/include/linux/compaction.h
+++ b/include/linux/compaction.h
@@ -49,10 +49,10 @@ enum compact_result {
49 COMPACT_CONTENDED, 49 COMPACT_CONTENDED,
50 50
51 /* 51 /*
52 * direct compaction partially compacted a zone and there might be 52 * direct compaction terminated after concluding that the allocation
53 * suitable pages 53 * should now succeed
54 */ 54 */
55 COMPACT_PARTIAL, 55 COMPACT_SUCCESS,
56}; 56};
57 57
58struct alloc_context; /* in mm/internal.h */ 58struct alloc_context; /* in mm/internal.h */
@@ -88,7 +88,7 @@ static inline bool compaction_made_progress(enum compact_result result)
88 * that the compaction successfully isolated and migrated some 88 * that the compaction successfully isolated and migrated some
89 * pageblocks. 89 * pageblocks.
90 */ 90 */
91 if (result == COMPACT_PARTIAL) 91 if (result == COMPACT_SUCCESS)
92 return true; 92 return true;
93 93
94 return false; 94 return false;