diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mempolicy.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index f2bab4d2fc40..07350d7b8d96 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -24,11 +24,13 @@ enum { | |||
24 | }; | 24 | }; |
25 | 25 | ||
26 | /* Flags for set_mempolicy */ | 26 | /* Flags for set_mempolicy */ |
27 | #define MPOL_F_STATIC_NODES (1 << 15) | ||
28 | |||
27 | /* | 29 | /* |
28 | * MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to | 30 | * MPOL_MODE_FLAGS is the union of all possible optional mode flags passed to |
29 | * either set_mempolicy() or mbind(). | 31 | * either set_mempolicy() or mbind(). |
30 | */ | 32 | */ |
31 | #define MPOL_MODE_FLAGS (0) | 33 | #define MPOL_MODE_FLAGS (MPOL_F_STATIC_NODES) |
32 | 34 | ||
33 | /* Flags for get_mempolicy */ | 35 | /* Flags for get_mempolicy */ |
34 | #define MPOL_F_NODE (1<<0) /* return next IL mode instead of node mask */ | 36 | #define MPOL_F_NODE (1<<0) /* return next IL mode instead of node mask */ |
@@ -85,7 +87,10 @@ struct mempolicy { | |||
85 | nodemask_t nodes; /* interleave/bind */ | 87 | nodemask_t nodes; /* interleave/bind */ |
86 | /* undefined for default */ | 88 | /* undefined for default */ |
87 | } v; | 89 | } v; |
88 | nodemask_t cpuset_mems_allowed; /* mempolicy relative to these nodes */ | 90 | union { |
91 | nodemask_t cpuset_mems_allowed; /* relative to these nodes */ | ||
92 | nodemask_t user_nodemask; /* nodemask passed by user */ | ||
93 | } w; | ||
89 | }; | 94 | }; |
90 | 95 | ||
91 | /* | 96 | /* |
@@ -124,7 +129,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) | |||
124 | return 1; | 129 | return 1; |
125 | return __mpol_equal(a, b); | 130 | return __mpol_equal(a, b); |
126 | } | 131 | } |
127 | #define vma_mpol_equal(a,b) mpol_equal(vma_policy(a), vma_policy(b)) | ||
128 | 132 | ||
129 | /* Could later add inheritance of the process policy here. */ | 133 | /* Could later add inheritance of the process policy here. */ |
130 | 134 | ||
@@ -190,7 +194,6 @@ static inline int mpol_equal(struct mempolicy *a, struct mempolicy *b) | |||
190 | { | 194 | { |
191 | return 1; | 195 | return 1; |
192 | } | 196 | } |
193 | #define vma_mpol_equal(a,b) 1 | ||
194 | 197 | ||
195 | #define mpol_set_vma_default(vma) do {} while(0) | 198 | #define mpol_set_vma_default(vma) do {} while(0) |
196 | 199 | ||