Lines Matching refs:new_flags
53 unsigned long new_flags = vma->vm_flags; in madvise_behavior() local
57 new_flags = new_flags & ~VM_RAND_READ & ~VM_SEQ_READ; in madvise_behavior()
60 new_flags = (new_flags & ~VM_RAND_READ) | VM_SEQ_READ; in madvise_behavior()
63 new_flags = (new_flags & ~VM_SEQ_READ) | VM_RAND_READ; in madvise_behavior()
66 new_flags |= VM_DONTCOPY; in madvise_behavior()
73 new_flags &= ~VM_DONTCOPY; in madvise_behavior()
76 new_flags |= VM_DONTDUMP; in madvise_behavior()
79 if (!is_vm_hugetlb_page(vma) && new_flags & VM_SPECIAL) { in madvise_behavior()
83 new_flags &= ~VM_DONTDUMP; in madvise_behavior()
87 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
93 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior()
99 if (new_flags == vma->vm_flags) { in madvise_behavior()
105 *prev = vma_merge(mm, *prev, start, end, new_flags, vma->anon_vma, in madvise_behavior()
131 vma->vm_flags = new_flags; in madvise_behavior()