Lines Matching refs:pregion
457 struct vm_region *pregion; in add_nommu_region() local
466 pregion = rb_entry(parent, struct vm_region, vm_rb); in add_nommu_region()
467 if (region->vm_start < pregion->vm_start) in add_nommu_region()
469 else if (region->vm_start > pregion->vm_start) in add_nommu_region()
471 else if (pregion == region) in add_nommu_region()
1120 struct vm_region *pregion; in do_mmap() local
1127 pregion = rb_entry(rb, struct vm_region, vm_rb); in do_mmap()
1129 if (!(pregion->vm_flags & VM_MAYSHARE)) in do_mmap()
1133 if (file_inode(pregion->vm_file) != in do_mmap()
1137 if (pregion->vm_pgoff >= pgend) in do_mmap()
1140 rpglen = pregion->vm_end - pregion->vm_start; in do_mmap()
1142 rpgend = pregion->vm_pgoff + rpglen; in do_mmap()
1148 if ((pregion->vm_pgoff != pgoff || rpglen != pglen) && in do_mmap()
1149 !(pgoff >= pregion->vm_pgoff && pgend <= rpgend)) { in do_mmap()
1157 pregion->vm_usage++; in do_mmap()
1158 vma->vm_region = pregion; in do_mmap()
1159 start = pregion->vm_start; in do_mmap()
1160 start += (pgoff - pregion->vm_pgoff) << PAGE_SHIFT; in do_mmap()
1164 if (pregion->vm_flags & VM_MAPPED_COPY) in do_mmap()
1172 pregion->vm_usage--; in do_mmap()
1173 pregion = NULL; in do_mmap()
1179 region = pregion; in do_mmap()