diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mempolicy.h | 22 | ||||
-rw-r--r-- | include/linux/shmem_fs.h | 4 |
2 files changed, 12 insertions, 14 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 | } |
diff --git a/include/linux/shmem_fs.h b/include/linux/shmem_fs.h index d7699a628d78..f2d12d5a21b8 100644 --- a/include/linux/shmem_fs.h +++ b/include/linux/shmem_fs.h | |||
@@ -34,9 +34,7 @@ struct shmem_sb_info { | |||
34 | uid_t uid; /* Mount uid for root directory */ | 34 | uid_t uid; /* Mount uid for root directory */ |
35 | gid_t gid; /* Mount gid for root directory */ | 35 | gid_t gid; /* Mount gid for root directory */ |
36 | mode_t mode; /* Mount mode for root directory */ | 36 | mode_t mode; /* Mount mode for root directory */ |
37 | unsigned short policy; /* Default NUMA memory alloc policy */ | 37 | struct mempolicy *mpol; /* default memory policy for mappings */ |
38 | unsigned short flags; /* Optional mempolicy flags */ | ||
39 | nodemask_t policy_nodes; /* nodemask for preferred and bind */ | ||
40 | }; | 38 | }; |
41 | 39 | ||
42 | static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) | 40 | static inline struct shmem_inode_info *SHMEM_I(struct inode *inode) |