From: Naoya Horiguchi Date: Wed, 11 Sep 2013 21:22:08 +0000 (-0700) Subject: mm: migrate: remove VM_HUGETLB from vma flag check in vma_migratable() X-Git-Tag: upstream/snapshot3+hdmi~4342^2~205 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71ea2efb1e936a127690a0a540b3a6162f95e48a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm: migrate: remove VM_HUGETLB from vma flag check in vma_migratable() Enable hugepage migration from migrate_pages(2), move_pages(2), and mbind(2). Signed-off-by: Naoya Horiguchi Acked-by: Hillf Danton Acked-by: Andi Kleen Reviewed-by: Wanpeng Li Cc: Mel Gorman Cc: Hugh Dickins Cc: KOSAKI Motohiro Cc: Michal Hocko Cc: Rik van Riel Cc: "Aneesh Kumar K.V" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h index b2f8977..da6716b 100644 --- a/include/linux/mempolicy.h +++ b/include/linux/mempolicy.h @@ -173,7 +173,7 @@ extern int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol); /* Check if a vma is migratable */ static inline int vma_migratable(struct vm_area_struct *vma) { - if (vma->vm_flags & (VM_IO | VM_HUGETLB | VM_PFNMAP)) + if (vma->vm_flags & (VM_IO | VM_PFNMAP)) return 0; /* * Migration allocates pages in the highest zone. If we cannot