powerpc/mmap: Any hint > 128TB searches the full VA space
[linux-2.6-block.git] / arch / powerpc / mm / slice.c
index ade66c3ecdcedb96ee06c2961076b6d1ea1e318b..966b9fccfa66b4268c5421252364bf2af6d6253f 100644 (file)
@@ -419,7 +419,8 @@ unsigned long slice_get_unmapped_area(unsigned long addr, unsigned long len,
        /*
         * Check if we need to expland slice area.
         */
-       if (unlikely(addr > mm->context.addr_limit && addr < TASK_SIZE)) {
+       if (unlikely(addr > mm->context.addr_limit &&
+                    mm->context.addr_limit != TASK_SIZE)) {
                mm->context.addr_limit = TASK_SIZE;
                on_each_cpu(slice_flush_segments, mm, 1);
        }