• Home
  • Raw
  • Download

Lines Matching refs:user

240 	struct user_struct	*user;  member
3054 unsigned long inflight = ctx->user->unix_inflight + nr; in __io_sqe_files_scm()
3073 fpl->user = get_uid(ctx->user); in __io_sqe_files_scm()
3076 unix_inflight(fpl->user, fpl->fp[i]); in __io_sqe_files_scm()
3266 static void io_unaccount_mem(struct user_struct *user, unsigned long nr_pages) in io_unaccount_mem() argument
3268 atomic_long_sub(nr_pages, &user->locked_vm); in io_unaccount_mem()
3271 static int io_account_mem(struct user_struct *user, unsigned long nr_pages) in io_account_mem() argument
3279 cur_pages = atomic_long_read(&user->locked_vm); in io_account_mem()
3283 } while (atomic_long_cmpxchg(&user->locked_vm, cur_pages, in io_account_mem()
3364 io_unaccount_mem(ctx->user, imu->nr_bvecs); in io_sqe_buffer_unregister()
3448 ret = io_account_mem(ctx->user, nr_pages); in io_sqe_buffer_register()
3465 io_unaccount_mem(ctx->user, nr_pages); in io_sqe_buffer_register()
3476 io_unaccount_mem(ctx->user, nr_pages); in io_sqe_buffer_register()
3508 io_unaccount_mem(ctx->user, nr_pages); in io_sqe_buffer_register()
3597 io_unaccount_mem(ctx->user, in io_ring_ctx_free()
3599 free_uid(ctx->user); in io_ring_ctx_free()
3842 struct user_struct *user = NULL; in io_uring_create() local
3859 user = get_uid(current_user()); in io_uring_create()
3863 ret = io_account_mem(user, in io_uring_create()
3866 free_uid(user); in io_uring_create()
3874 io_unaccount_mem(user, ring_pages(p->sq_entries, in io_uring_create()
3876 free_uid(user); in io_uring_create()
3881 ctx->user = user; in io_uring_create()