Home
last modified time | relevance | path

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

/fs/
Dpipe.c632 static bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
636 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()
639 static bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument
643 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
656 unsigned long user_bufs; in alloc_pipe_info() local
666 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
668 if (too_many_pipe_buffers_soft(user_bufs) && is_unprivileged_user()) { in alloc_pipe_info()
669 user_bufs = account_pipe_buffers(user, pipe_bufs, 1); in alloc_pipe_info()
673 if (too_many_pipe_buffers_hard(user_bufs) && is_unprivileged_user()) in alloc_pipe_info()
1058 unsigned long user_bufs; in pipe_set_size() local
[all …]
Dio_uring.c238 struct io_mapped_ubuf *user_bufs; member
1176 if (unlikely(!ctx->user_bufs)) in io_import_fixed()
1184 imu = &ctx->user_bufs[index]; in io_import_fixed()
3354 if (!ctx->user_bufs) in io_sqe_buffer_unregister()
3358 struct io_mapped_ubuf *imu = &ctx->user_bufs[i]; in io_sqe_buffer_unregister()
3369 kfree(ctx->user_bufs); in io_sqe_buffer_unregister()
3370 ctx->user_bufs = NULL; in io_sqe_buffer_unregister()
3408 if (ctx->user_bufs) in io_sqe_buffer_register()
3413 ctx->user_bufs = kcalloc(nr_args, sizeof(struct io_mapped_ubuf), in io_sqe_buffer_register()
3415 if (!ctx->user_bufs) in io_sqe_buffer_register()
[all …]