aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/slice.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2017-03-21 23:37:01 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2017-04-01 06:12:28 -0400
commitfbfef9027c2a7ad9277755509fdb849dbccfe8c1 (patch)
treef44258e7f2972d130c9fa4f80cdb969d0495f4f3 /arch/powerpc/mm/slice.c
parent82228e362f9b7f4b876d0fbb1036c235797c6b1d (diff)
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,
277 info.align_offset = 0; 277 info.align_offset = 0;
278 278
279 addr = TASK_UNMAPPED_BASE; 279 addr = TASK_UNMAPPED_BASE;
280 while (addr < TASK_SIZE) { 280 while (addr < mm->context.addr_limit) {
281 info.low_limit = addr; 281 info.low_limit = addr;
282 if (!slice_scan_available(addr, available, 1, &addr)) 282 if (!slice_scan_available(addr, available, 1, &addr))
283 continue; 283 continue;
@@ -289,8 +289,8 @@ static unsigned long slice_find_area_bottomup(struct mm_struct *mm,
289 * Check if we need to reduce the range, or if we can 289 * Check if we need to reduce the range, or if we can
290 * extend it to cover the next available slice. 290 * extend it to cover the next available slice.
291 */ 291 */
292 if (addr >= TASK_SIZE) 292 if (addr >= mm->context.addr_limit)
293 addr = TASK_SIZE; 293 addr = mm->context.addr_limit;
294 else if (slice_scan_available(addr, available, 1, &next_end)) { 294 else if (slice_scan_available(addr, available, 1, &next_end)) {
295 addr = next_end; 295 addr = next_end;
296 goto next_slice; 296 goto next_slice;