File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ struct migration_target_control;
19
19
*/
20
20
#define MIGRATEPAGE_SUCCESS 0
21
21
22
+ /*
23
+ * Keep sync with:
24
+ * - macro MIGRATE_REASON in include/trace/events/migrate.h
25
+ * - migrate_reason_names[MR_TYPES] in mm/debug.c
26
+ */
22
27
enum migrate_reason {
23
28
MR_COMPACTION ,
24
29
MR_MEMORY_FAILURE ,
@@ -32,7 +37,6 @@ enum migrate_reason {
32
37
MR_TYPES
33
38
};
34
39
35
- /* In mm/debug.c; also keep sync with include/trace/events/migrate.h */
36
40
extern const char * migrate_reason_names [MR_TYPES ];
37
41
38
42
#ifdef CONFIG_MIGRATION
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const char *migrate_reason_names[MR_TYPES] = {
26
26
"numa_misplaced" ,
27
27
"contig_range" ,
28
28
"longterm_pin" ,
29
+ "demotion" ,
29
30
};
30
31
31
32
const struct trace_print_flags pageflag_names [] = {
You can’t perform that action at this time.
0 commit comments