Searched refs:user_bufs (Results 1 – 9 of 9) sorted by relevance
762 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument766 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()769 bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument773 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()786 unsigned long user_bufs; in alloc_pipe_info() local796 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()798 if (too_many_pipe_buffers_soft(user_bufs) && pipe_is_unprivileged_user()) { in alloc_pipe_info()799 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()803 if (too_many_pipe_buffers_hard(user_bufs) && pipe_is_unprivileged_user()) in alloc_pipe_info()1326 unsigned long user_bufs; in pipe_set_size() local[all …]
468 if (ctx->user_bufs[i] != &dummy_ubuf) { in __io_sqe_buffers_update()470 ctx->user_bufs[i]); in __io_sqe_buffers_update()475 ctx->user_bufs[i] = (struct io_mapped_ubuf *)&dummy_ubuf; in __io_sqe_buffers_update()478 ctx->user_bufs[i] = imu; in __io_sqe_buffers_update()939 io_buffer_unmap(ctx, &ctx->user_bufs[i]); in __io_sqe_buffers_unregister()940 kfree(ctx->user_bufs); in __io_sqe_buffers_unregister()942 ctx->user_bufs = NULL; in __io_sqe_buffers_unregister()991 struct io_mapped_ubuf *imu = ctx->user_bufs[i]; in headpage_already_acct()1165 ctx->user_bufs = kcalloc(nr_args, sizeof(*ctx->user_bufs), GFP_KERNEL); in io_buffers_map_alloc()1166 return ctx->user_bufs ? 0 : -ENOMEM; in io_buffers_map_alloc()[all …]
105 req->imu = ctx->user_bufs[index]; in io_uring_cmd_prep()
165 struct io_mapped_ubuf *buf = ctx->user_bufs[i]; in io_uring_show_fdinfo()
94 req->imu = ctx->user_bufs[index]; in io_prep_rw()
1036 req->imu = READ_ONCE(ctx->user_bufs[idx]); in io_send_zc_prep()
282 bool too_many_pipe_buffers_soft(unsigned long user_bufs);283 bool too_many_pipe_buffers_hard(unsigned long user_bufs);
249 struct io_mapped_ubuf **user_bufs; member
243 unsigned long user_bufs; in watch_queue_set_size() local257 user_bufs = account_pipe_buffers(pipe->user, pipe->nr_accounted, nr_pages); in watch_queue_set_size()260 (too_many_pipe_buffers_hard(user_bufs) || in watch_queue_set_size()261 too_many_pipe_buffers_soft(user_bufs)) && in watch_queue_set_size()