summaryrefslogtreecommitdiffstats
path: root/backport-include/linux/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/mm.h')
-rw-r--r--backport-include/linux/mm.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/backport-include/linux/mm.h b/backport-include/linux/mm.h
new file mode 100644
index 0000000..9ba1f00
--- /dev/null
+++ b/backport-include/linux/mm.h
@@ -0,0 +1,23 @@
+#ifndef __BACKPORT_MM_H
+#define __BACKPORT_MM_H
+#include_next <linux/mm.h>
+
+#ifndef VM_NODUMP
+/*
+ * defined here to allow things to compile but technically
+ * using this for memory regions will yield in a no-op on newer
+ * kernels but on older kernels (v3.3 and older) this bit was used
+ * for VM_ALWAYSDUMP. The goal was to remove this bit moving forward
+ * and since we can't skip the core dump on old kernels we just make
+ * this bit name now a no-op.
+ *
+ * For details see commits: 909af7 accb61fe cdaaa7003
+ */
+#define VM_NODUMP 0x0
+#endif
+
+#ifndef VM_DONTDUMP
+#define VM_DONTDUMP VM_NODUMP
+#endif
+
+#endif /* __BACKPORT_MM_H */