Home
last modified time | relevance | path

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

/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,
230 of VM_LOCKED VMAs that map the page (Rik van Riel had the same idea three years
237 attempting to isolate them, thus abandoning the count of VM_LOCKED VMAs. When
240 other VM_LOCKED VMAs still mapped the page.
254 mlocked pages - pages mapped into a VM_LOCKED VMA - are a class of unevictable
270 (4) in the fault path and when a VM_LOCKED stack segment is expanded; or
273 reclaim a page in a VM_LOCKED VMA by folio_referenced() or try_to_unmap().
279 (2) munmap()'d out of the last VM_LOCKED VMA that maps the page, including
[all …]
/linux/mm/
H A Dmadvise.c601 return !(vma->vm_flags & (VM_LOCKED|VM_PFNMAP|VM_HUGETLB)); in can_madv_lru_vma()
884 forbidden |= VM_LOCKED; in madvise_dontneed_free_valid_vma()
1021 if (vma->vm_flags & VM_LOCKED) in madvise_remove()
1065 disallowed |= VM_LOCKED; in is_valid_guard_vma()
H A Dfolio.c505 if (unlikely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED)) in folio_add_lru_vma()
H A Dinternal.h990 if (unlikely((vma->vm_flags & (VM_LOCKED|VM_SPECIAL)) == VM_LOCKED)) in mlock_vma_folio()
1007 if (unlikely(vma->vm_flags & VM_LOCKED)) in munlock_vma_folio()
H A Drmap.c2242 (vma->vm_flags & VM_LOCKED)) { in try_to_unmap_one()
2399 if (vma->vm_flags & VM_LOCKED) in try_to_unmap_one()
2774 if (vma->vm_flags & VM_LOCKED) in try_to_migrate_one()
H A Dmigrate.c313 if (folio_test_mlocked(folio) || (pvmw->vma->vm_flags & VM_LOCKED) || in try_to_map_unused_to_zeropage()
450 if (READ_ONCE(vma->vm_flags) & VM_LOCKED) in remove_migration_pte()
H A Duserfaultfd.c1800 if ((src_vma->vm_flags & VM_LOCKED) != (dst_vma->vm_flags & VM_LOCKED)) in validate_move_areas()
H A Dfilemap.c3509 if (!(vma->vm_flags & VM_LOCKED)) in filemap_fault_recheck_pte_none()
H A Dhuge_memory.c3613 if (vma->vm_flags & VM_LOCKED) in __discard_anon_folio_pmd_locked()
H A Dmemory.c4664 if (mem_cgroup_swap_full(folio) || (vma->vm_flags & VM_LOCKED) || in should_try_to_free_swap()
H A Dvmscan.c3383 if (vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) in should_skip_vma()
/linux/tools/testing/vma/include/
H A Ddup.h222 #define VM_LOCKED INIT_VM_FLAG(LOCKED) macro
373 #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT)
1532 if (!(vm_flags & VM_LOCKED) || capable(CAP_IPC_LOCK)) in mlock_future_ok()
/linux/fs/proc/
H A Dtask_mmu.c1054 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pte_entry()
1101 bool locked = !!(vma->vm_flags & VM_LOCKED); in smaps_pmd_entry()
1195 [ilog2(VM_LOCKED)] = "lo", in show_smap_vma_flags()
/linux/include/linux/
H A Dmm.h419 #define VM_LOCKED INIT_VM_FLAG(LOCKED) macro
620 #define VM_LOCKED_MASK (VM_LOCKED | VM_LOCKONFAULT)
/linux/kernel/events/
H A Dcore.c9812 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()