Commit 8fcb1257 authored by Linus Torvalds's avatar Linus Torvalds

This reverts the mmap address hint usage for now.

It broke some existing setups, so let's drop it until we have
a better notion of how to do this.
parent a4614dba
......@@ -110,8 +110,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
if (end - len >= addr &&
(!vma || addr + len <= vma->vm_start))
return addr;
} else
addr = mm->free_area_cache;
}
addr = mm->free_area_cache;
if (addr < begin)
addr = begin;
start_addr = addr;
......
......@@ -743,9 +743,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
if (TASK_SIZE - len >= addr &&
(!vma || addr + len <= vma->vm_start))
return addr;
} else
addr = mm->free_area_cache;
start_addr = addr;
}
start_addr = addr = mm->free_area_cache;
full_search:
for (vma = find_vma(mm, addr); ; vma = vma->vm_next) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment