summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slice.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2017-03-22 09:07:01 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-04-01 21:12:28 +1100
commitfbfef9027c2a7ad9277755509fdb849dbccfe8c1 (patch)
treef44258e7f2972d130c9fa4f80cdb969d0495f4f3 /arch/powerpc/mm/slice.c
parent82228e362f9b7f4b876d0fbb1036c235797c6b1d (diff)
downloadlinux-stable-fbfef9027c2a7ad9277755509fdb849dbccfe8c1.tar.gz
linux-stable-fbfef9027c2a7ad9277755509fdb849dbccfe8c1.tar.bz2
linux-stable-fbfef9027c2a7ad9277755509fdb849dbccfe8c1.zip
powerpc/mm: Switch some TASK_SIZE checks to use mm_context addr_limit
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/slice.c')
-rw-r--r--arch/powerpc/mm/slice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
index ded96edac817..19d8788820e1 100644
--- a/arch/powerpc/mm/slice.c
+++ b/arch/powerpc/mm/slice.c
@@ -277,7 +277,7 @@ static unsigned long slice_find_area_bottomup(struct mm_struct *mm,
info.align_offset = 0;
addr = TASK_UNMAPPED_BASE;
- while (addr < TASK_SIZE) {
+ while (addr < mm->context.addr_limit) {
info.low_limit = addr;
if (!slice_scan_available(addr, available, 1, &addr))
continue;
@@ -289,8 +289,8 @@ static unsigned long slice_find_area_bottomup(struct mm_struct *mm,
* Check if we need to reduce the range, or if we can
* extend it to cover the next available slice.
*/
- if (addr >= TASK_SIZE)
- addr = TASK_SIZE;
+ if (addr >= mm->context.addr_limit)
+ addr = mm->context.addr_limit;
else if (slice_scan_available(addr, available, 1, &next_end)) {
addr = next_end;
goto next_slice;