Home
last modified time | relevance | path

Searched refs:user_bufs (Results 1 – 2 of 2) sorted by relevance

/fs/
Dpipe.c647 static bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
651 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()
654 static bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument
658 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
671 unsigned long user_bufs; in alloc_pipe_info() local
681 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
683 if (too_many_pipe_buffers_soft(user_bufs) && is_unprivileged_user()) { in alloc_pipe_info()
684 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
688 if (too_many_pipe_buffers_hard(user_bufs) && is_unprivileged_user()) in alloc_pipe_info()
1073 unsigned long user_bufs; in pipe_set_size() local
[all …]
Dio_uring.c238 struct io_mapped_ubuf *user_bufs; member
1197 if (unlikely(!ctx->user_bufs)) in io_import_fixed()
1205 imu = &ctx->user_bufs[index]; in io_import_fixed()
3329 if (!ctx->user_bufs) in io_sqe_buffer_unregister()
3333 struct io_mapped_ubuf *imu = &ctx->user_bufs[i]; in io_sqe_buffer_unregister()
3344 kfree(ctx->user_bufs); in io_sqe_buffer_unregister()
3345 ctx->user_bufs = NULL; in io_sqe_buffer_unregister()
3383 if (ctx->user_bufs) in io_sqe_buffer_register()
3388 ctx->user_bufs = kcalloc(nr_args, sizeof(struct io_mapped_ubuf), in io_sqe_buffer_register()
3390 if (!ctx->user_bufs) in io_sqe_buffer_register()
[all …]