diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mempolicy.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index b0fab9e80655..dcc17378c952 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h | |||
@@ -214,6 +214,13 @@ static inline void check_highest_zone(enum zone_type k) | |||
214 | int do_migrate_pages(struct mm_struct *mm, | 214 | int do_migrate_pages(struct mm_struct *mm, |
215 | const nodemask_t *from_nodes, const nodemask_t *to_nodes, int flags); | 215 | const nodemask_t *from_nodes, const nodemask_t *to_nodes, int flags); |
216 | 216 | ||
217 | |||
218 | #ifdef CONFIG_TMPFS | ||
219 | extern int mpol_parse_str(char *str, unsigned short *mode, | ||
220 | unsigned short *mode_flags, nodemask_t *policy_nodes); | ||
221 | |||
222 | extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); | ||
223 | #endif | ||
217 | #else | 224 | #else |
218 | 225 | ||
219 | struct mempolicy {}; | 226 | struct mempolicy {}; |
@@ -313,6 +320,20 @@ static inline int do_migrate_pages(struct mm_struct *mm, | |||
313 | static inline void check_highest_zone(int k) | 320 | static inline void check_highest_zone(int k) |
314 | { | 321 | { |
315 | } | 322 | } |
323 | |||
324 | #ifdef CONFIG_TMPFS | ||
325 | static inline int mpol_parse_str(char *value, unsigned short *policy, | ||
326 | unsigned short flags, nodemask_t *policy_nodes) | ||
327 | { | ||
328 | return 1; | ||
329 | } | ||
330 | |||
331 | static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol) | ||
332 | { | ||
333 | return 0; | ||
334 | } | ||
335 | #endif | ||
336 | |||
316 | #endif /* CONFIG_NUMA */ | 337 | #endif /* CONFIG_NUMA */ |
317 | #endif /* __KERNEL__ */ | 338 | #endif /* __KERNEL__ */ |
318 | 339 | ||