diff options
Diffstat (limited to 'include/linux/mempolicy.h')
-rw-r--r-- | include/linux/mempolicy.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index dcc17378c952..3a39570b81b8 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -182,8 +182,7 @@ struct shared_policy { | |||
182 | spinlock_t lock; | 182 | spinlock_t lock; |
183 | }; | 183 | }; |
184 | 184 | ||
185 | void mpol_shared_policy_init(struct shared_policy *info, unsigned short mode, | 185 | void mpol_shared_policy_init(struct shared_policy *sp, struct mempolicy *mpol); |
186 | unsigned short flags, nodemask_t *nodes); | ||
187 | int mpol_set_shared_policy(struct shared_policy *info, | 186 | int mpol_set_shared_policy(struct shared_policy *info, |
188 | struct vm_area_struct *vma, | 187 | struct vm_area_struct *vma, |
189 | struct mempolicy *new); | 188 | struct mempolicy *new); |
@@ -216,10 +215,10 @@ int do_migrate_pages(struct mm_struct *mm, | |||
216 | 215 | ||
217 | 216 | ||
218 | #ifdef CONFIG_TMPFS | 217 | #ifdef CONFIG_TMPFS |
219 | extern int mpol_parse_str(char *str, unsigned short *mode, | 218 | extern int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context); |
220 | unsigned short *mode_flags, nodemask_t *policy_nodes); | ||
221 | 219 | ||
222 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); | 220 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, |
221 | int no_context); | ||
223 | #endif | 222 | #endif |
224 | #else | 223 | #else |
225 | 224 | ||
@@ -262,8 +261,8 @@ static inline int mpol_set_shared_policy(struct shared_policy *info, | |||
262 | return -EINVAL; | 261 | return -EINVAL; |
263 | } | 262 | } |
264 | 263 | ||
265 | static inline void mpol_shared_policy_init(struct shared_policy *info, | 264 | static inline void mpol_shared_policy_init(struct shared_policy *sp, |
266 | unsigned short mode, unsigned short flags, nodemask_t *nodes) | 265 | struct mempolicy *mpol) |
267 | { | 266 | { |
268 | } | 267 | } |
269 | 268 | ||
@@ -322,13 +321,14 @@ static inline void check_highest_zone(int k) | |||
322 | } | 321 | } |
323 | 322 | ||
324 | #ifdef CONFIG_TMPFS | 323 | #ifdef CONFIG_TMPFS |
325 | static inline int mpol_parse_str(char *value, unsigned short *policy, | 324 | static inline int mpol_parse_str(char *str, struct mempolicy **mpol, |
326 | unsigned short flags, nodemask_t *policy_nodes) | 325 | int no_context) |
327 | { | 326 | { |
328 | return 1; | 327 | return 1; /* error */ |
329 | } | 328 | } |
330 | 329 | ||
331 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) | 330 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, |
331 | int no_context) | ||
332 | { | 332 | { |
333 | return 0; | 333 | return 0; |
334 | } | 334 | } |