Skip to content
  • James Hogan's avatar
    metag: hugetlb: convert to vm_unmapped_area() · f75c28d8
    James Hogan authored
    
    
    Convert hugetlb_get_unmapped_area_new_pmd() to use vm_unmapped_area()
    rather than searching the virtual address space itself. This fixes the
    following errors in linux-next due to the specified members being
    removed after other architectures have already been converted:
    
    arch/metag/mm/hugetlbpage.c: In function 'hugetlb_get_unmapped_area_new_pmd':
    arch/metag/mm/hugetlbpage.c:199: error: 'struct mm_struct' has no member named 'cached_hole_size'
    arch/metag/mm/hugetlbpage.c:200: error: 'struct mm_struct' has no member named 'free_area_cache'
    arch/metag/mm/hugetlbpage.c:215: error: 'struct mm_struct' has no member named 'cached_hole_size'
    
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Acked-by: default avatarMichel Lespinasse <walken@google.com>
    f75c28d8