|
@@ -231,10 +231,10 @@ int do_migrate_pages(struct mm_struct *mm,
|
|
|
|
|
|
#ifdef CONFIG_TMPFS
|
|
|
extern int mpol_parse_str(char *str, struct mempolicy **mpol, int no_context);
|
|
|
+#endif
|
|
|
|
|
|
extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol,
|
|
|
int no_context);
|
|
|
-#endif
|
|
|
|
|
|
/* Check if a vma is migratable */
|
|
|
static inline int vma_migratable(struct vm_area_struct *vma)
|
|
@@ -371,13 +371,13 @@ static inline int mpol_parse_str(char *str, struct mempolicy **mpol,
|
|
|
{
|
|
|
return 1; /* error */
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol,
|
|
|
int no_context)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
#endif /* CONFIG_NUMA */
|
|
|
#endif /* __KERNEL__ */
|