Searched refs:VM_LOCKED (Results 1 – 25 of 25) sorted by relevance
/kernel/linux/linux-5.10/Documentation/vm/ |
D | unevictable-lru.rst | 49 * Those mapped into VM_LOCKED [mlock()ed] VMAs. 185 faulted into a VM_LOCKED vma, or found in a vma being VM_LOCKED. 201 There may be situations where a page is mapped into a VM_LOCKED VMA, but the 236 of VM_LOCKED VMAs that map the page. This use of the link field for a count 242 attempting to isolate them, thus abandoning the count of VM_LOCKED VMAs. When 244 replaced by walking the reverse map to determine whether any VM_LOCKED VMAs 251 mlocked pages - pages mapped into a VM_LOCKED VMA - are a class of unevictable 268 and when a VM_LOCKED stack segment is expanded; or 271 reclaim a page in a VM_LOCKED VMA via try_to_unmap() 273 all of which result in the VM_LOCKED flag being set for the VMA if it doesn't [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | mlock.c | 531 int lock = !!(newflags & VM_LOCKED); in mlock_fixup() 568 else if (old_flags & VM_LOCKED) in mlock_fixup() 662 if (vma->vm_flags & VM_LOCKED) { in count_mm_mlocked_page_nr() 725 return do_mlock(start, len, VM_LOCKED); in SYSCALL_DEFINE2() 730 vm_flags_t vm_flags = VM_LOCKED; in SYSCALL_DEFINE3() 775 current->mm->def_flags |= VM_LOCKED; in apply_mlockall_flags() 785 to_add |= VM_LOCKED; in apply_mlockall_flags()
|
D | msync.c | 79 (vma->vm_flags & VM_LOCKED)) { in SYSCALL_DEFINE3()
|
D | mmap.c | 278 populate = newbrk > oldbrk && (mm->def_flags & VM_LOCKED) != 0; in SYSCALL_DEFINE1() 1369 if (flags & VM_LOCKED) { in mlock_future_check() 1611 ((vm_flags & VM_LOCKED) || in do_mmap() 1905 if (vm_flags & VM_LOCKED) { in mmap_region() 2413 if (vma->vm_flags & VM_LOCKED) { in acct_stack_growth() 2508 if (vma->vm_flags & VM_LOCKED) in expand_upwards() 2588 if (vma->vm_flags & VM_LOCKED) in expand_downwards() 2642 if (prev->vm_flags & VM_LOCKED) in find_extend_vma() 2669 if (vma->vm_flags & VM_LOCKED) in find_extend_vma() 2949 if (tmp->vm_flags & VM_LOCKED) { in __do_munmap() [all …]
|
D | mremap.c | 458 if (vm_flags & VM_LOCKED) { in move_vma() 522 if (vma->vm_flags & VM_LOCKED) { in vma_to_resize() 768 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
|
D | rmap.c | 793 if (vma->vm_flags & VM_LOCKED) { in page_referenced_one() 795 pra->vm_flags |= VM_LOCKED; in page_referenced_one() 1411 if ((flags & TTU_MUNLOCK) && !(vma->vm_flags & VM_LOCKED)) in try_to_unmap_one() 1469 if (vma->vm_flags & VM_LOCKED) { in try_to_unmap_one()
|
D | mprotect.c | 503 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
|
D | swap.c | 499 unevictable = (vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED; in lru_cache_add_inactive_or_unevictable()
|
D | internal.h | 163 return !(vma->vm_flags & (VM_LOCKED|VM_HUGETLB|VM_PFNMAP)); in can_madv_lru_vma()
|
D | shmem.c | 1378 if (info->flags & VM_LOCKED) in shmem_writepage() 2244 if (lock && !(info->flags & VM_LOCKED)) { in shmem_lock() 2247 info->flags |= VM_LOCKED; in shmem_lock() 2250 if (!lock && (info->flags & VM_LOCKED) && user) { in shmem_lock() 2252 info->flags &= ~VM_LOCKED; in shmem_lock()
|
D | madvise.c | 848 if (vma->vm_flags & VM_LOCKED) in madvise_remove()
|
D | huge_memory.c | 1370 if ((flags & FOLL_MLOCK) && (vma->vm_flags & VM_LOCKED)) { in follow_trans_huge_pmd() 3006 if ((vma->vm_flags & VM_LOCKED) && !PageDoubleMap(new)) in remove_migration_pmd()
|
D | gup.c | 520 if ((flags & FOLL_MLOCK) && (vma->vm_flags & VM_LOCKED)) { in follow_page_pte()
|
D | ksm.c | 1260 if ((vma->vm_flags & VM_LOCKED) && kpage && !err) { in try_to_merge_one_page()
|
D | memory.c | 3005 if (page_copied && (vma->vm_flags & VM_LOCKED)) { in wp_page_copy() 3558 (vma->vm_flags & VM_LOCKED) || PageMlocked(page)) in do_swap_page()
|
D | migrate.c | 277 if (vma->vm_flags & VM_LOCKED && !PageTransCompound(new)) in remove_migration_pte()
|
D | vmscan.c | 936 if (vm_flags & VM_LOCKED) in page_check_references()
|
/kernel/linux/linux-5.10/include/linux/ |
D | mman.h | 155 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | in calc_vm_flag_bits()
|
D | mm.h | 282 #define VM_LOCKED 0x00002000 macro 432 #define VM_LOCKED_CLEAR_MASK (~(VM_LOCKED | VM_LOCKONFAULT))
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | mmflags.h | 169 {VM_LOCKED, "locked" }, \
|
/kernel/linux/linux-5.10/drivers/misc/sgi-gru/ |
D | grufile.c | 104 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_LOCKED | in gru_file_mmap()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | task_mmu.c | 527 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pte_entry() 577 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pmd_entry() 665 [ilog2(VM_LOCKED)] = "lo", in show_smap_vma_flags()
|
/kernel/linux/linux-5.10/kernel/events/ |
D | uprobes.c | 208 if ((vma->vm_flags & VM_LOCKED) && !PageCompound(old_page)) in __replace_page()
|
D | core.c | 8220 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()
|
/kernel/linux/linux-5.10/kernel/ |
D | fork.c | 558 tmp->vm_flags &= ~(VM_LOCKED | VM_LOCKONFAULT); in dup_mmap()
|