/* Find the vma of a GRU segment. Caller must hold mmap_sem.  */
struct vm_area_struct* gru_find_vma(unsigned long vaddr)
/* Find the vma of a GRU segment. Caller must hold mmap_sem.  */
struct vm_area_struct* gru_find_vma(unsigned long vaddr)
{
	struct vm_area_struct *vma;
	vma = find_vma(current->mm, vaddr);
	if (vma && vma->vm_start <= vaddr && vma->vm_ops == &gru_vm_ops)
		return vma;
	return NULL;
}