Skip to content

Commit 57ed7b4

Browse files
owniatorvalds
authored andcommitted
mm/debug: sync up latest migrate_reason to migrate_reason_names
Sync up MR_DEMOTION to migrate_reason_names and add a synch prompt. Link: https://lkml.kernel.org/r/[email protected] Fixes: 26aa2d1 ("mm/migrate: demote pages during reclaim") Signed-off-by: Weizhao Ouyang <[email protected]> Reviewed-by: "Huang, Ying" <[email protected]> Reviewed-by: John Hubbard <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Pavel Tatashin <[email protected]> Cc: Yang Shi <[email protected]> Cc: Zi Yan <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Mina Almasry <[email protected]> Cc: "Matthew Wilcox (Oracle)" <[email protected]> Cc: Oscar Salvador <[email protected]> Cc: Wei Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent a4ce739 commit 57ed7b4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/linux/migrate.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ struct migration_target_control;
1919
*/
2020
#define MIGRATEPAGE_SUCCESS 0
2121

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+
*/
2227
enum migrate_reason {
2328
MR_COMPACTION,
2429
MR_MEMORY_FAILURE,
@@ -32,7 +37,6 @@ enum migrate_reason {
3237
MR_TYPES
3338
};
3439

35-
/* In mm/debug.c; also keep sync with include/trace/events/migrate.h */
3640
extern const char *migrate_reason_names[MR_TYPES];
3741

3842
#ifdef CONFIG_MIGRATION

mm/debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const char *migrate_reason_names[MR_TYPES] = {
2626
"numa_misplaced",
2727
"contig_range",
2828
"longterm_pin",
29+
"demotion",
2930
};
3031

3132
const struct trace_print_flags pageflag_names[] = {

0 commit comments

Comments
 (0)