Home
last modified time | relevance | path

Searched refs:VM_LOCKED (Results 1 – 21 of 21) sorted by relevance

/openbmc/linux/mm/
H A Dmlock.c325 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 Dsecretmem.c130 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 Dmsync.c83 (vma->vm_flags & VM_LOCKED)) { in SYSCALL_DEFINE3()
H A Dmmap.c263 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 Dinternal.h638 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 Drmap.c814 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 Dswap.c534 if (unlikely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED)) in folio_add_lru_vma()
H A Dmadvise.c560 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 Dmprotect.c672 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
H A Dmremap.c732 if (vm_flags & VM_LOCKED) { in move_vma()
1074 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
H A Dshmem.c1466 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 Dmigrate.c268 if (vma->vm_flags & VM_LOCKED) in remove_migration_pte()
H A Dvmscan.c1538 if (vm_flags & VM_LOCKED) in folio_check_references()
3860 if (vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) in should_skip_vma()
H A Dmemory.c3651 if (mem_cgroup_swap_full(folio) || (vma->vm_flags & VM_LOCKED) || in should_try_to_free_swap()
/openbmc/linux/Documentation/mm/
H A Dunevictable-lru.rst49 * 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 Dmman.h157 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | in calc_vm_flag_bits()
H A Dmm.h291 #define VM_LOCKED 0x00002000 macro
449 #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT)
/openbmc/linux/include/trace/events/
H A Dmmflags.h182 {VM_LOCKED, "locked" }, \
/openbmc/linux/drivers/misc/sgi-gru/
H A Dgrufile.c104 vm_flags_set(vma, VM_IO | VM_PFNMAP | VM_LOCKED | in gru_file_mmap()
/openbmc/linux/fs/proc/
H A Dtask_mmu.c527 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 Dcore.c8764 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()