Home
last modified time | relevance | path

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

/linux-6.1.9/mm/
Dmlock.c324 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 …]
Dsecretmem.c128 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()
Dmsync.c83 (vma->vm_flags & VM_LOCKED)) { in SYSCALL_DEFINE3()
Dinternal.h520 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()
Dmmap.c268 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 …]
Drmap.c816 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()
Dmadvise.c520 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()
Dmprotect.c653 if ((oldflags & (VM_WRITE | VM_SHARED | VM_LOCKED)) == VM_LOCKED && in mprotect_fixup()
Dswap.c551 if (unlikely((vma->vm_flags & (VM_LOCKED | VM_SPECIAL)) == VM_LOCKED)) in folio_add_lru_vma()
Dmremap.c710 if (vm_flags & VM_LOCKED) { in move_vma()
1047 if (vma->vm_flags & VM_LOCKED) { in SYSCALL_DEFINE5()
Dshmem.c1355 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()
Dmigrate.c258 if (vma->vm_flags & VM_LOCKED) in remove_migration_pte()
Dvmscan.c1460 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()
Dmemory.c3651 if (mem_cgroup_swap_full(folio) || (vma->vm_flags & VM_LOCKED) || in should_try_to_free_swap()
/linux-6.1.9/Documentation/mm/
Dunevictable-lru.rst49 * 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/
Dmman.h153 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | in calc_vm_flag_bits()
Dmm.h282 #define VM_LOCKED 0x00002000 macro
419 #define VM_LOCKED_CLEAR_MASK (~(VM_LOCKED | VM_LOCKONFAULT))
/linux-6.1.9/include/trace/events/
Dmmflags.h179 {VM_LOCKED, "locked" }, \
/linux-6.1.9/drivers/misc/sgi-gru/
Dgrufile.c104 vma->vm_flags |= VM_IO | VM_PFNMAP | VM_LOCKED | in gru_file_mmap()
/linux-6.1.9/fs/proc/
Dtask_mmu.c531 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/
Dfork.c662 tmp->vm_flags &= ~(VM_LOCKED | VM_LOCKONFAULT); in dup_mmap()
/linux-6.1.9/kernel/events/
Dcore.c8461 if (vma->vm_flags & VM_LOCKED) in perf_event_mmap_event()