]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fix mm: use vm_unmapped_area() in hugetlbfs on tile architecture
authorMichel Lespinasse <walken@google.com>
Fri, 9 Nov 2012 06:13:58 +0000 (22:13 -0800)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Nov 2012 04:55:28 +0000 (15:55 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/tile/mm/hugetlbpage.c

index 6f74cce053e1e2ac10d51f8a44f265e46fa5b049..650ccff8378cd6a8ddd42c557ab3bea2667d0a7d 100644 (file)
@@ -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);