Searched refs:VM_LOCKED (Results 1 – 22 of 22) sorted by relevance
/linux-6.1.9/mm/ |
D | mlock.c | 324 if (vma->vm_flags & VM_LOCKED) in mlock_pte_range() 340 if (vma->vm_flags & VM_LOCKED) in mlock_pte_range() 381 if (newflags & VM_LOCKED) in mlock_vma_pages_range() 445 if (!(newflags & VM_LOCKED)) in mlock_fixup() 447 else if (oldflags & VM_LOCKED) in mlock_fixup() 457 if ((newflags & VM_LOCKED) && (oldflags & VM_LOCKED)) { in mlock_fixup() 541 if (vma->vm_flags & VM_LOCKED) { in count_mm_mlocked_page_nr() 616 return do_mlock(start, len, VM_LOCKED); in SYSCALL_DEFINE2() 621 vm_flags_t vm_flags = VM_LOCKED; in SYSCALL_DEFINE3() 667 current->mm->def_flags |= VM_LOCKED; in apply_mlockall_flags() [all …]
|
D | secretmem.c | 128 if (mlock_future_check(vma->vm_mm, vma->vm_flags | VM_LOCKED, len)) in secretmem_mmap() 131 vma->vm_flags |= VM_LOCKED | VM_DONTDUMP; in secretmem_mmap()
|
D | msync.c | 83 (vma->vm_flags & VM_LOCKED)) { in SYSCALL_DEFINE3()
|
D | internal.h | 520 if (unlikely((vma->vm_flags & (VM_LOCKED|VM_SPECIAL)) == VM_LOCKED) && in mlock_vma_folio() 535 if (unlikely(vma->vm_flags & VM_LOCKED) && in munlock_vma_page()
|
D | mmap.c | 268 populate = newbrk > oldbrk && (mm->def_flags & VM_LOCKED) != 0; in SYSCALL_DEFINE1() 1193 if (flags & VM_LOCKED) { in mlock_future_check() 1413 ((vm_flags & VM_LOCKED) || in do_mmap() 1978 if (vma->vm_flags & VM_LOCKED) in expand_upwards() 2059 if (vma->vm_flags & VM_LOCKED) in expand_downwards() 2113 if (prev->vm_flags & VM_LOCKED) in find_extend_vma() 2140 if (vma->vm_flags & VM_LOCKED) in find_extend_vma() 2283 if (vma->vm_flags & VM_LOCKED) in munmap_sidetree() 2723 if (vm_flags & VM_LOCKED) { in mmap_region() 2875 if (vma->vm_flags & VM_LOCKED) in SYSCALL_DEFINE5() [all …]
|
D | rmap.c | 816 if ((vma->vm_flags & VM_LOCKED) && in folio_referenced_one() 821 pra->vm_flags |= VM_LOCKED; in folio_referenced_one() 864 pra->vm_flags |= vma->vm_flags & ~VM_LOCKED; in folio_referenced_one() 1522 (vma->vm_flags & VM_LOCKED)) { in try_to_unmap_one() 1789 if (vma->vm_flags & VM_LOCKED) in try_to_unmap_one() 2130 if (vma->vm_flags & VM_LOCKED) in try_to_migrate_one()
|
D | madvise.c | 520 return !(vma->vm_flags & (VM_LOCKED|VM_PFNMAP|VM_HUGETLB)); in can_madv_lru_vma() 806 forbidden |= VM_LOCKED; in madvise_dontneed_free_valid_vma() 965 if (vma->vm_flags & VM_LOCKED) in madvise_remove()
|
D | mprotect.c | 653 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
|
D | swap.c | 551 if (unlikely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED)) in folio_add_lru_vma()
|
D | mremap.c | 710 if (vm_flags & VM_LOCKED) { in move_vma() 1047 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
|
D | shmem.c | 1355 if (info->flags & VM_LOCKED) in shmem_writepage() 2264 if (lock && !(info->flags & VM_LOCKED)) { in shmem_lock() 2267 info->flags |= VM_LOCKED; in shmem_lock() 2270 if (!lock && (info->flags & VM_LOCKED) && ucounts) { in shmem_lock() 2272 info->flags &= ~VM_LOCKED; in shmem_lock()
|
D | migrate.c | 258 if (vma->vm_flags & VM_LOCKED) in remove_migration_pte()
|
D | vmscan.c | 1460 if (vm_flags & VM_LOCKED) in folio_check_references() 3752 if (vma->vm_flags & (VM_LOCKED | VM_SPECIAL | VM_SEQ_READ | VM_RAND_READ)) in should_skip_vma()
|
D | memory.c | 3651 if (mem_cgroup_swap_full(folio) || (vma->vm_flags & VM_LOCKED) || in should_try_to_free_swap()
|
/linux-6.1.9/Documentation/mm/ |
D | unevictable-lru.rst | 49 * Those mapped into VM_LOCKED [mlock()ed] VMAs. 181 faulted into a VM_LOCKED VMA, or found in a VMA being VM_LOCKED. 197 There may be situations where a page is mapped into a VM_LOCKED VMA, but the 227 of VM_LOCKED VMAs that map the page (Rik van Riel had the same idea three years 234 attempting to isolate them, thus abandoning the count of VM_LOCKED VMAs. When 237 other VM_LOCKED VMAs still mapped the page. 251 mlocked pages - pages mapped into a VM_LOCKED VMA - are a class of unevictable 267 (4) in the fault path and when a VM_LOCKED stack segment is expanded; or 270 reclaim a page in a VM_LOCKED VMA by folio_referenced() or try_to_unmap(). 276 (2) munmap()'d out of the last VM_LOCKED VMA that maps the page, including [all …]
|
/linux-6.1.9/include/linux/ |
D | mman.h | 153 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | in calc_vm_flag_bits()
|
D | mm.h | 282 #define VM_LOCKED 0x00002000 macro 419 #define VM_LOCKED_CLEAR_MASK (~(VM_LOCKED | VM_LOCKONFAULT))
|
/linux-6.1.9/include/trace/events/ |
D | mmflags.h | 179 {VM_LOCKED, "locked" }, \
|
/linux-6.1.9/drivers/misc/sgi-gru/ |
D | grufile.c | 104 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_LOCKED | in gru_file_mmap()
|
/linux-6.1.9/fs/proc/ |
D | task_mmu.c | 531 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pte_entry() 577 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pmd_entry() 664 [ilog2(VM_LOCKED)] = "lo", in show_smap_vma_flags()
|
/linux-6.1.9/kernel/ |
D | fork.c | 662 tmp->vm_flags &= ~(VM_LOCKED | VM_LOCKONFAULT); in dup_mmap()
|
/linux-6.1.9/kernel/events/ |
D | core.c | 8461 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()
|