mm: migrate: Account a transhuge page properly when rate limiting
[deliverable/linux.git] / include / linux / mempolicy.h
index e5ccb9ddd90eeb634665e88afd13d56184fff241..c511e25235602bc2af11f495f2d92f59f78ebd2c 100644 (file)
@@ -198,6 +198,8 @@ static inline int vma_migratable(struct vm_area_struct *vma)
        return 1;
 }
 
+extern int mpol_misplaced(struct page *, struct vm_area_struct *, unsigned long);
+
 #else
 
 struct mempolicy {};
@@ -323,5 +325,11 @@ static inline int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol,
        return 0;
 }
 
+static inline int mpol_misplaced(struct page *page, struct vm_area_struct *vma,
+                                unsigned long address)
+{
+       return -1; /* no node preference */
+}
+
 #endif /* CONFIG_NUMA */
 #endif
This page took 0.025579 seconds and 5 git commands to generate.