|
4 | 4 | /* Return values for compact_zone() and try_to_compact_pages() */
|
5 | 5 | /* When adding new states, please adjust include/trace/events/compaction.h */
|
6 | 6 | enum compact_result {
|
| 7 | + /* For more detailed tracepoint output - internal to compaction */ |
| 8 | + COMPACT_NOT_SUITABLE_ZONE, |
7 | 9 | /*
|
8 | 10 | * compaction didn't start as it was not possible or direct reclaim
|
9 | 11 | * was more suitable
|
10 | 12 | */
|
11 | 13 | COMPACT_SKIPPED,
|
12 | 14 | /* compaction didn't start as it was deferred due to past failures */
|
13 | 15 | COMPACT_DEFERRED,
|
| 16 | + |
14 | 17 | /* compaction not active last round */
|
15 | 18 | COMPACT_INACTIVE = COMPACT_DEFERRED,
|
16 | 19 |
|
| 20 | + /* For more detailed tracepoint output - internal to compaction */ |
| 21 | + COMPACT_NO_SUITABLE_PAGE, |
17 | 22 | /* compaction should continue to another pageblock */
|
18 | 23 | COMPACT_CONTINUE,
|
| 24 | + |
19 | 25 | /*
|
20 |
| - * direct compaction partially compacted a zone and there are suitable |
21 |
| - * pages |
| 26 | + * The full zone was compacted scanned but wasn't successfull to compact |
| 27 | + * suitable pages. |
22 | 28 | */
|
23 |
| - COMPACT_PARTIAL, |
| 29 | + COMPACT_COMPLETE, |
24 | 30 | /*
|
25 | 31 | * direct compaction has scanned part of the zone but wasn't successfull
|
26 | 32 | * to compact suitable pages.
|
27 | 33 | */
|
28 | 34 | COMPACT_PARTIAL_SKIPPED,
|
| 35 | + |
| 36 | + /* compaction terminated prematurely due to lock contentions */ |
| 37 | + COMPACT_CONTENDED, |
| 38 | + |
29 | 39 | /*
|
30 |
| - * The full zone was compacted scanned but wasn't successfull to compact |
31 |
| - * suitable pages. |
| 40 | + * direct compaction partially compacted a zone and there might be |
| 41 | + * suitable pages |
32 | 42 | */
|
33 |
| - COMPACT_COMPLETE, |
34 |
| - /* For more detailed tracepoint output */ |
35 |
| - COMPACT_NO_SUITABLE_PAGE, |
36 |
| - COMPACT_NOT_SUITABLE_ZONE, |
37 |
| - COMPACT_CONTENDED, |
| 43 | + COMPACT_PARTIAL, |
38 | 44 | };
|
39 | 45 |
|
40 | 46 | /* Used to signal whether compaction detected need_sched() or lock contention */
|
|
0 commit comments