summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/migrate_mode.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/migrate_mode.h')
-rw-r--r--kernel/include/linux/migrate_mode.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/include/linux/migrate_mode.h b/kernel/include/linux/migrate_mode.h
new file mode 100644
index 000000000..ebf3d89a3
--- /dev/null
+++ b/kernel/include/linux/migrate_mode.h
@@ -0,0 +1,16 @@
+#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,
+};
+
+#endif /* MIGRATE_MODE_H_INCLUDED */