mempolicy: mark shared policies for unref
[firefly-linux-kernel-4.4.55.git] / include / linux / mempolicy.h
index 9080fab1426d09246eb6972347d0708c656d0ae1..017def89e568e0d74c6980462ec94cda3350f405 100644 (file)
@@ -44,6 +44,13 @@ enum {
 #define MPOL_MF_MOVE_ALL (1<<2)        /* Move every page to conform to mapping */
 #define MPOL_MF_INTERNAL (1<<3)        /* Internal flags start here */
 
+/*
+ * Internal flags that share the struct mempolicy flags word with
+ * "mode flags".  These flags are allocated from bit 0 up, as they
+ * are never OR'ed into the mode in mempolicy API arguments.
+ */
+#define MPOL_F_SHARED  (1 << 0)        /* identify shared policies */
+
 #ifdef __KERNEL__
 
 #include <linux/mmzone.h>