summaryrefslogtreecommitdiff
path: root/mount/swap_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'mount/swap_constants.h')
-rw-r--r--mount/swap_constants.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/mount/swap_constants.h b/mount/swap_constants.h
new file mode 100644
index 00000000..c7e8b4c7
--- /dev/null
+++ b/mount/swap_constants.h
@@ -0,0 +1,15 @@
+/*
+ * It is too painful to get these out of <linux/swap.h>
+ * (which again requires <asm/page.h> etc).
+ * These exist since Linux 1.3.2.
+ */
+
+#ifndef SWAP_FLAG_PREFER
+#define SWAP_FLAG_PREFER 0x8000 /* set if swap priority specified */
+#endif
+#ifndef SWAP_FLAG_PRIO_MASK
+#define SWAP_FLAG_PRIO_MASK 0x7fff
+#endif
+#ifndef SWAP_FLAG_PRIO_SHIFT
+#define SWAP_FLAG_PRIO_SHIFT 0
+#endif