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,7 +110,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, ...@@ -110,7 +110,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
if (end - len >= addr && if (end - len >= addr &&
(!vma || addr + len <= vma->vm_start)) (!vma || addr + len <= vma->vm_start))
return addr; return addr;
} else }
addr = mm->free_area_cache; addr = mm->free_area_cache;
if (addr < begin) if (addr < begin)
addr = begin; addr = begin;
......
...@@ -743,9 +743,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr, ...@@ -743,9 +743,8 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
if (TASK_SIZE - len >= addr && if (TASK_SIZE - len >= addr &&
(!vma || addr + len <= vma->vm_start)) (!vma || addr + len <= vma->vm_start))
return addr; return addr;
} else }
addr = mm->free_area_cache; start_addr = addr = mm->free_area_cache;
start_addr = addr;
full_search: full_search:
for (vma = find_vma(mm, addr); ; vma = vma->vm_next) { 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