From: Michel Lespinasse Date: Fri, 9 Nov 2012 06:13:58 +0000 (-0800) Subject: fix mm: use vm_unmapped_area() in hugetlbfs on tile architecture X-Git-Tag: next-20121112~5^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad4ade6de4ee2e44a6ccdf14491dff68fd00c20a;p=karo-tx-linux.git fix mm: use vm_unmapped_area() in hugetlbfs on tile architecture Signed-off-by: Stephen Rothwell --- diff --git a/arch/tile/mm/hugetlbpage.c b/arch/tile/mm/hugetlbpage.c index 6f74cce053e1..650ccff8378c 100644 --- a/arch/tile/mm/hugetlbpage.c +++ b/arch/tile/mm/hugetlbpage.c @@ -253,7 +253,7 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file, info.flags = VM_UNMAPPED_AREA_TOPDOWN; info.length = len; info.low_limit = PAGE_SIZE; - info.high_limit = mm->mmap_base; + info.high_limit = current->mm->mmap_base; info.align_mask = PAGE_MASK & ~huge_page_mask(h); info.align_offset = 0; addr = vm_unmapped_area(&info);