Lines Matching refs:new_flags
72 unsigned long new_flags = vma->vm_flags; in madvise_behavior() local
76 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_behavior()
79 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_behavior()
82 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_behavior()
85 new_flags |= VM_DONTCOPY; in madvise_behavior()
92 new_flags &= ~VM_DONTCOPY; in madvise_behavior()
100 new_flags |= VM_WIPEONFORK; in madvise_behavior()
103 new_flags &= ~VM_WIPEONFORK; in madvise_behavior()
106 new_flags |= VM_DONTDUMP; in madvise_behavior()
109 if (!is_vm_hugetlb_page(vma) && new_flags & VM_SPECIAL) { in madvise_behavior()
113 new_flags &= ~VM_DONTDUMP; in madvise_behavior()
117 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
123 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior()
129 if (new_flags == vma->vm_flags) { in madvise_behavior()
135 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_behavior()
169 vma->vm_flags = new_flags; in madvise_behavior()