Home
last modified time | relevance | path

Searched refs:locked_vm (Results 1 – 20 of 20) sorted by relevance

/Linux-v6.6/mm/
Dutil.c477 unsigned long locked_vm, limit; in __account_locked_vm() local
482 locked_vm = mm->locked_vm; in __account_locked_vm()
486 if (locked_vm + pages > limit) in __account_locked_vm()
490 mm->locked_vm = locked_vm + pages; in __account_locked_vm()
492 WARN_ON_ONCE(pages > locked_vm); in __account_locked_vm()
493 mm->locked_vm = locked_vm - pages; in __account_locked_vm()
498 locked_vm << PAGE_SHIFT, task_rlimit(task, RLIMIT_MEMLOCK), in __account_locked_vm()
Ddebug.c201 mm->hiwater_rss, mm->hiwater_vm, mm->total_vm, mm->locked_vm, in dump_mm()
Dmmap.c1160 locked_pages += mm->locked_vm; in mlock_future_ok()
2027 mm->locked_vm += grow; in expand_upwards()
2120 mm->locked_vm += grow; in expand_downwards()
2460 unsigned long locked_vm = 0; in do_vmi_align_munmap() local
2508 locked_vm += vma_pages(next); in do_vmi_align_munmap()
2560 mm->locked_vm -= locked_vm; in do_vmi_align_munmap()
2873 mm->locked_vm += (len >> PAGE_SHIFT); in mmap_region()
3139 mm->locked_vm += (len >> PAGE_SHIFT); in do_brk_flags()
Dmlock.c458 mm->locked_vm += nr_pages; in mlock_fixup()
596 locked += current->mm->locked_vm; in do_mlock()
Dmremap.c726 mm->locked_vm += new_len >> PAGE_SHIFT; in move_vma()
1068 mm->locked_vm += pages; in SYSCALL_DEFINE5()
/Linux-v6.6/net/xdp/
Dxdp_umem.c35 atomic_long_sub(umem->npgs, &umem->user->locked_vm); in xdp_umem_unaccount_pages()
139 old_npgs = atomic_long_read(&umem->user->locked_vm); in xdp_umem_account_pages()
146 } while (atomic_long_cmpxchg(&umem->user->locked_vm, old_npgs, in xdp_umem_account_pages()
/Linux-v6.6/include/linux/sched/
Duser.h29 atomic_long_t locked_vm; member
/Linux-v6.6/arch/s390/kvm/
Dpci.c199 atomic_long_sub(nr_pages, &user->locked_vm); in unaccount_mem()
212 cur_pages = atomic_long_read(&user->locked_vm); in account_mem()
216 } while (atomic_long_cmpxchg(&user->locked_vm, cur_pages, in account_mem()
/Linux-v6.6/io_uring/
Drsrc.h164 atomic_long_sub(nr_pages, &user->locked_vm); in __io_unaccount_mem()
Drsrc.c52 cur_pages = atomic_long_read(&user->locked_vm); in __io_account_mem()
57 } while (!atomic_long_try_cmpxchg(&user->locked_vm, in __io_account_mem()
/Linux-v6.6/drivers/iommu/iommufd/
Dpages.c813 cur_pages = atomic_long_read(&pages->source_user->locked_vm); in incr_user_locked_vm()
817 } while (atomic_long_cmpxchg(&pages->source_user->locked_vm, cur_pages, in incr_user_locked_vm()
824 if (WARN_ON(atomic_long_read(&pages->source_user->locked_vm) < npages)) in decr_user_locked_vm()
826 atomic_long_sub(npages, &pages->source_user->locked_vm); in decr_user_locked_vm()
/Linux-v6.6/include/linux/
Dmm_types.h793 unsigned long locked_vm; /* Pages that have PG_mlocked set */ member
/Linux-v6.6/drivers/vfio/
Dvfio_iommu_type1.c101 size_t locked_vm; member
439 dma->locked_vm += npage; in vfio_lock_acct()
675 mm->locked_vm + lock_acct + 1 > limit) { in vfio_pin_pages_remote()
1529 long npage = dma->locked_vm; in vfio_change_dma_owner()
/Linux-v6.6/drivers/infiniband/sw/siw/
Dsiw_verbs.c1346 if (num_pages > mem_limit - current->mm->locked_vm) { in siw_reg_user_mr()
1349 current->mm->locked_vm); in siw_reg_user_mr()
/Linux-v6.6/net/core/
Dskbuff.c1513 old_pg = atomic_long_read(&user->locked_vm); in mm_account_pinned_pages()
1518 } while (!atomic_long_try_cmpxchg(&user->locked_vm, &old_pg, new_pg)); in mm_account_pinned_pages()
1534 atomic_long_sub(mmp->num_pg, &mmp->user->locked_vm); in mm_unaccount_pinned_pages()
/Linux-v6.6/fs/proc/
Dtask_mmu.c62 SEQ_PUT_DEC(" kB\nVmLck:\t", mm->locked_vm); in task_mem()
/Linux-v6.6/Documentation/driver-api/
Dvfio.rst636 mm::locked_vm counter to make sure we do not exceed the rlimit.
/Linux-v6.6/Documentation/mm/
Dunevictable-lru.rst363 VMAs against the task's "locked_vm".
/Linux-v6.6/kernel/
Dfork.c1272 mm->locked_vm = 0; in mm_init()
/Linux-v6.6/kernel/events/
Dcore.c6300 atomic_long_sub(rb->aux_nr_pages - rb->aux_mmap_locked, &mmap_user->locked_vm); in perf_mmap_close()
6375 &mmap_user->locked_vm); in perf_mmap_close()
6521 user_locked = atomic_long_read(&user->locked_vm); in perf_mmap()
6583 atomic_long_add(user_extra, &user->locked_vm); in perf_mmap()