* Returns: The VMA associated with the @start or the next VMA within the range.
*/
struct vm_area_struct *find_vma_intersection(struct mm_struct *mm,
- unsigned long addr,
- unsigned long end)
+ unsigned long start_addr,
+ unsigned long end_addr)
{
struct vm_area_struct *vma;
/* Check the cache first. */
- vma = vmacache_find(mm, addr);
+ vma = vmacache_find(mm, start_addr);
if (likely(vma))
return vma;
- vma = mt_find(&mm->mm_mt, &addr, end - 1);
+ vma = mt_find(&mm->mm_mt, &start_addr, end_addr - 1);
if (vma)
- vmacache_update(addr, vma);
+ vmacache_update(start_addr, vma);
return vma;
}
+EXPORT_SYMBOL(find_vma_intersection);
/**
* find_vma() - Find the VMA for a given address, or the next vma.