metag: hugetlb: convert to vm_unmapped_area()
authorJames Hogan <james.hogan@imgtec.com>
Mon, 11 Feb 2013 17:28:10 +0000 (17:28 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:11:13 +0000 (20:11 +0000)
commitf75c28d896f4dd0064e60bba1e82a4c98908d239
tree18097d57e812bdcd86634d86b6089fc07605946a
parentc838e72a35e49ea51c39c2c634ece028fa49c565
metag: hugetlb: convert to vm_unmapped_area()

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: James Hogan <james.hogan@imgtec.com>
Acked-by: Michel Lespinasse <walken@google.com>
arch/metag/mm/hugetlbpage.c