diff options
Diffstat (limited to 'include/linux/mempolicy.h')
| -rw-r--r-- | include/linux/mempolicy.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index da6716b9e3fe..9fe426b30a41 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
| @@ -136,6 +136,7 @@ struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, | |||
| 136 | 136 | ||
| 137 | struct mempolicy *get_vma_policy(struct task_struct *tsk, | 137 | struct mempolicy *get_vma_policy(struct task_struct *tsk, |
| 138 | struct vm_area_struct *vma, unsigned long addr); | 138 | struct vm_area_struct *vma, unsigned long addr); |
| 139 | bool vma_policy_mof(struct task_struct *task, struct vm_area_struct *vma); | ||
| 139 | 140 | ||
| 140 | extern void numa_default_policy(void); | 141 | extern void numa_default_policy(void); |
| 141 | extern void numa_policy_init(void); | 142 | extern void numa_policy_init(void); |
| @@ -168,7 +169,7 @@ int do_migrate_pages(struct mm_struct *mm, const nodemask_t *from, | |||
| 168 | extern int mpol_parse_str(char *str, struct mempolicy **mpol); | 169 | extern int mpol_parse_str(char *str, struct mempolicy **mpol); |
| 169 | #endif | 170 | #endif |
| 170 | 171 | ||
| 171 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); | 172 | extern void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); |
| 172 | 173 | ||
| 173 | /* Check if a vma is migratable */ | 174 | /* Check if a vma is migratable */ |
| 174 | static inline int vma_migratable(struct vm_area_struct *vma) | 175 | static inline int vma_migratable(struct vm_area_struct *vma) |
| @@ -306,9 +307,8 @@ static inline int mpol_parse_str(char *str, struct mempolicy **mpol) | |||
| 306 | } | 307 | } |
| 307 | #endif | 308 | #endif |
| 308 | 309 | ||
| 309 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) | 310 | static inline void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) |
| 310 | { | 311 | { |
| 311 | return 0; | ||
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | static inline int mpol_misplaced(struct page *page, struct vm_area_struct *vma, | 314 | static inline int mpol_misplaced(struct page *page, struct vm_area_struct *vma, |
