powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 26 Feb 2019 04:39:35 +0000 (10:09 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Feb 2019 05:26:29 +0000 (16:26 +1100)
commit3b4d07d2674f6b4a9281031f99d1f7efd325b16d
tree89f5853509e93ff36e22d70928a1470549d6472c
parent5330367fa300742a97e20e953b1f77f48392faae
powerpc/mm/hash: Handle mmap_min_addr correctly in get_unmapped_area topdown search

When doing top-down search the low_limit is not PAGE_SIZE but rather
max(PAGE_SIZE, mmap_min_addr). This handle cases in which mmap_min_addr >
PAGE_SIZE.

Fixes: fba2369e6ceb ("mm: use vm_unmapped_area() on powerpc architecture")
Reviewed-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slice.c