/openbmc/linux/mm/ |
H A D | mlock.c | 325 if (vma->vm_flags & VM_LOCKED) in mlock_pte_range() 346 if (vma->vm_flags & VM_LOCKED) in mlock_pte_range() 388 if (newflags & VM_LOCKED) in mlock_vma_pages_range() 454 if (!(newflags & VM_LOCKED)) in mlock_fixup() 456 else if (oldflags & VM_LOCKED) in mlock_fixup() 465 if ((newflags & VM_LOCKED) && (oldflags & VM_LOCKED)) { in mlock_fixup() 549 if (vma->vm_flags & VM_LOCKED) { in count_mm_mlocked_page_nr() 624 return do_mlock(start, len, VM_LOCKED); in SYSCALL_DEFINE2() 629 vm_flags_t vm_flags = VM_LOCKED; in SYSCALL_DEFINE3() 675 current->mm->def_flags |= VM_LOCKED; in apply_mlockall_flags() [all …]
|
H A D | secretmem.c | 130 if (!mlock_future_ok(vma->vm_mm, vma->vm_flags | VM_LOCKED, len)) in secretmem_mmap() 133 vm_flags_set(vma, VM_LOCKED | VM_DONTDUMP); in secretmem_mmap()
|
H A D | msync.c | 83 (vma->vm_flags & VM_LOCKED)) { in SYSCALL_DEFINE3()
|
H A D | mmap.c | 263 if (mm->def_flags & VM_LOCKED) in SYSCALL_DEFINE1() 1384 ((vm_flags & VM_LOCKED) || in do_mmap() 2034 if (vma->vm_flags & VM_LOCKED) in expand_upwards() 2127 if (vma->vm_flags & VM_LOCKED) in expand_downwards() 2183 if (prev->vm_flags & VM_LOCKED) in find_extend_vma_locked() 2209 if (vma->vm_flags & VM_LOCKED) in find_extend_vma_locked() 2515 if (next->vm_flags & VM_LOCKED) in do_vmi_align_munmap() 2875 if (vm_flags & VM_LOCKED) { in mmap_region() 3024 if (vma->vm_flags & VM_LOCKED) in SYSCALL_DEFINE5() 3150 if (flags & VM_LOCKED) in do_brk_flags() [all …]
|
H A D | internal.h | 638 if (unlikely((vma->vm_flags & (VM_LOCKED|VM_SPECIAL)) == VM_LOCKED) && in mlock_vma_folio() 647 if (unlikely(vma->vm_flags & VM_LOCKED) && in munlock_vma_folio()
|
H A D | rmap.c | 814 if ((vma->vm_flags & VM_LOCKED) && in folio_referenced_one() 819 pra->vm_flags |= VM_LOCKED; in folio_referenced_one() 852 pra->vm_flags |= vma->vm_flags & ~VM_LOCKED; in folio_referenced_one() 1529 (vma->vm_flags & VM_LOCKED)) { in try_to_unmap_one() 1765 if (vma->vm_flags & VM_LOCKED) in try_to_unmap_one() 2118 if (vma->vm_flags & VM_LOCKED) in try_to_migrate_one()
|
H A D | swap.c | 534 if (unlikely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED)) in folio_add_lru_vma()
|
H A D | madvise.c | 560 return !(vma->vm_flags & (VM_LOCKED|VM_PFNMAP|VM_HUGETLB)); in can_madv_lru_vma() 838 forbidden |= VM_LOCKED; in madvise_dontneed_free_valid_vma() 972 if (vma->vm_flags & VM_LOCKED) in madvise_remove()
|
H A D | mprotect.c | 672 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
|
H A D | mremap.c | 732 if (vm_flags & VM_LOCKED) { in move_vma() 1074 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
|
H A D | shmem.c | 1466 if (WARN_ON_ONCE((info->flags & VM_LOCKED) || sbinfo->noswap)) in shmem_writepage() 2378 if (lock && !(info->flags & VM_LOCKED)) { in shmem_lock() 2381 info->flags |= VM_LOCKED; in shmem_lock() 2384 if (!lock && (info->flags & VM_LOCKED) && ucounts) { in shmem_lock() 2386 info->flags &= ~VM_LOCKED; in shmem_lock()
|
H A D | migrate.c | 268 if (vma->vm_flags & VM_LOCKED) in remove_migration_pte()
|
H A D | vmscan.c | 1538 if (vm_flags & VM_LOCKED) in folio_check_references() 3860 if (vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) in should_skip_vma()
|
H A D | memory.c | 3651 if (mem_cgroup_swap_full(folio) || (vma->vm_flags & VM_LOCKED) || in should_try_to_free_swap()
|
/openbmc/linux/Documentation/mm/ |
H A D | unevictable-lru.rst | 49 * Those mapped into VM_LOCKED [mlock()ed] VMAs. 182 VM_LOCKED VMA, or found in a VMA being VM_LOCKED. 198 There may be situations where a folio is mapped into a VM_LOCKED VMA, 240 other VM_LOCKED VMAs still mapped the page. 270 (4) in the fault path and when a VM_LOCKED stack segment is expanded; or 285 (4) before a page is COW'd in a VM_LOCKED VMA. 295 an already VM_LOCKED VMA, or to munlock() a VMA that is not VM_LOCKED, is 334 VM_LOCKED VMA. 361 VM_LOCKED flag. Therefore, we won't have to deal with them later during 391 again later if vmscan finds it in a VM_LOCKED VMA. [all …]
|
/openbmc/linux/include/linux/ |
H A D | mman.h | 157 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | in calc_vm_flag_bits()
|
H A D | mm.h | 291 #define VM_LOCKED 0x00002000 macro 449 #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT)
|
/openbmc/linux/include/trace/events/ |
H A D | mmflags.h | 182 {VM_LOCKED, "locked" }, \
|
/openbmc/linux/drivers/misc/sgi-gru/ |
H A D | grufile.c | 104 vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_LOCKED | in gru_file_mmap()
|
/openbmc/linux/fs/proc/ |
H A D | task_mmu.c | 527 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pte_entry() 574 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pmd_entry() 657 [ilog2(VM_LOCKED)] = "lo", in show_smap_vma_flags()
|
/openbmc/linux/kernel/events/ |
H A D | core.c | 8764 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()
|