mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
ced816a76b
The current patch series introduces DAMON based migration across NUMA nodes so it'd be better to have a new migrate_reason in trace events. Link: https://lkml.kernel.org/r/20240614030010.751-5-honggyu.kim@sk.com Signed-off-by: Honggyu Kim <honggyu.kim@sk.com> Reviewed-by: SeongJae Park <sj@kernel.org> Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Gregory Price <gregory.price@memverge.com> Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Hyeongtak Ji <hyeongtak.ji@sk.com> Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Rakie Kim <rakie.kim@sk.com> Cc: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
32 lines
713 B
C
32 lines
713 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef MIGRATE_MODE_H_INCLUDED
|
|
#define MIGRATE_MODE_H_INCLUDED
|
|
/*
|
|
* MIGRATE_ASYNC means never block
|
|
* MIGRATE_SYNC_LIGHT in the current implementation means to allow blocking
|
|
* on most operations but not ->writepage as the potential stall time
|
|
* is too significant
|
|
* MIGRATE_SYNC will block when migrating pages
|
|
*/
|
|
enum migrate_mode {
|
|
MIGRATE_ASYNC,
|
|
MIGRATE_SYNC_LIGHT,
|
|
MIGRATE_SYNC,
|
|
};
|
|
|
|
enum migrate_reason {
|
|
MR_COMPACTION,
|
|
MR_MEMORY_FAILURE,
|
|
MR_MEMORY_HOTPLUG,
|
|
MR_SYSCALL, /* also applies to cpusets */
|
|
MR_MEMPOLICY_MBIND,
|
|
MR_NUMA_MISPLACED,
|
|
MR_CONTIG_RANGE,
|
|
MR_LONGTERM_PIN,
|
|
MR_DEMOTION,
|
|
MR_DAMON,
|
|
MR_TYPES
|
|
};
|
|
|
|
#endif /* MIGRATE_MODE_H_INCLUDED */
|