Lines Matching refs:new_flags
137 unsigned long end, unsigned long new_flags, in madvise_update_vma() argument
144 if (new_flags == vma->vm_flags && anon_vma_name_eq(anon_vma_name(vma), anon_name)) { in madvise_update_vma()
150 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_update_vma()
180 vma->vm_flags = new_flags; in madvise_update_vma()
891 unsigned long new_flags = vma->vm_flags; in madvise_vma_behavior() local
906 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_vma_behavior()
909 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_vma_behavior()
912 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_vma_behavior()
915 new_flags |= VM_DONTCOPY; in madvise_vma_behavior()
920 new_flags &= ~VM_DONTCOPY; in madvise_vma_behavior()
926 new_flags |= VM_WIPEONFORK; in madvise_vma_behavior()
929 new_flags &= ~VM_WIPEONFORK; in madvise_vma_behavior()
932 new_flags |= VM_DONTDUMP; in madvise_vma_behavior()
935 if (!is_vm_hugetlb_page(vma) && new_flags & VM_SPECIAL) in madvise_vma_behavior()
937 new_flags &= ~VM_DONTDUMP; in madvise_vma_behavior()
941 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_vma_behavior()
947 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_vma_behavior()
955 error = madvise_update_vma(vma, prev, start, end, new_flags, in madvise_vma_behavior()