Lines Matching refs:vma
246 struct vm_area_struct *vma) in sel_mmap_handle_status() argument
249 unsigned long size = vma->vm_end - vma->vm_start; in sel_mmap_handle_status()
254 if (vma->vm_pgoff > 0 || size != PAGE_SIZE) in sel_mmap_handle_status()
257 if (vma->vm_flags & VM_WRITE) in sel_mmap_handle_status()
260 vma->vm_flags &= ~VM_MAYWRITE; in sel_mmap_handle_status()
262 return remap_pfn_range(vma, vma->vm_start, in sel_mmap_handle_status()
264 size, vma->vm_page_prot); in sel_mmap_handle_status()
457 struct policy_load_memory *plm = vmf->vma->vm_file->private_data; in sel_mmap_policy_fault()
481 static int sel_mmap_policy(struct file *filp, struct vm_area_struct *vma) in sel_mmap_policy() argument
483 if (vma->vm_flags & VM_SHARED) { in sel_mmap_policy()
485 vma->vm_flags &= ~VM_MAYWRITE; in sel_mmap_policy()
487 if (vma->vm_flags & VM_WRITE) in sel_mmap_policy()
491 vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; in sel_mmap_policy()
492 vma->vm_ops = &sel_mmap_policy_ops; in sel_mmap_policy()