Home
last modified time | relevance | path

Searched refs:mm_account (Results 1 – 6 of 6) sorted by relevance

/linux/io_uring/
H A Drsrc.h127 int io_account_mem(struct user_struct *user, struct mm_struct *mm_account,
129 void io_unaccount_mem(struct user_struct *user, struct mm_struct *mm_account,
H A Drsrc.c59 void io_unaccount_mem(struct user_struct *user, struct mm_struct *mm_account, in io_unaccount_mem() argument
65 if (mm_account) in io_unaccount_mem()
66 atomic64_sub(nr_pages, &mm_account->pinned_vm); in io_unaccount_mem()
69 int io_account_mem(struct user_struct *user, struct mm_struct *mm_account, in io_account_mem() argument
80 if (mm_account) in io_account_mem()
81 atomic64_add(nr_pages, &mm_account->pinned_vm); in io_account_mem()
135 io_unaccount_mem(ctx->user, ctx->mm_account, imu->acct_pages); in io_buffer_unmap()
671 ret = io_account_mem(ctx->user, ctx->mm_account, imu->acct_pages); in io_buffer_account_pin()
1160 if (ctx->user != src_ctx->user || ctx->mm_account != src_ctx->mm_account) in io_clone_buffers()
H A Dzcrx.c217 ret = io_account_mem(ifq->user, ifq->mm_account, mem->account_pages); in io_import_umem()
420 io_unaccount_mem(ifq->user, ifq->mm_account, in io_zcrx_free_area()
569 if (ifq->mm_account) in io_zcrx_ifq_free()
570 mmdrop(ifq->mm_account); in io_zcrx_ifq_free()
805 if (ctx->mm_account) { in io_register_zcrx_ifq()
806 mmgrab(ctx->mm_account); in io_register_zcrx_ifq()
807 ifq->mm_account = ctx->mm_account; in io_register_zcrx_ifq()
H A Dzcrx.h45 struct mm_struct *mm_account; member
H A Dio_uring.c2170 if (ctx->mm_account) { in io_ring_ctx_free()
2171 mmdrop(ctx->mm_account); in io_ring_ctx_free()
2172 ctx->mm_account = NULL; in io_ring_ctx_free()
3007 ctx->mm_account = current->mm; in io_uring_create()
/linux/include/linux/
H A Dio_uring_types.h443 struct mm_struct *mm_account; member