Lines Matching refs:user_bufs
769 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
773 return soft_limit && user_bufs > soft_limit; in too_many_pipe_buffers_soft()
776 bool too_many_pipe_buffers_hard(unsigned long user_bufs) in too_many_pipe_buffers_hard() argument
780 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
793 unsigned long user_bufs; in alloc_pipe_info() local
803 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()
805 if (too_many_pipe_buffers_soft(user_bufs) && pipe_is_unprivileged_user()) { in alloc_pipe_info()
806 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()
810 if (too_many_pipe_buffers_hard(user_bufs) && pipe_is_unprivileged_user()) in alloc_pipe_info()
1333 unsigned long user_bufs; in pipe_set_size() local
1357 user_bufs = account_pipe_buffers(pipe->user, pipe->nr_accounted, nr_slots); in pipe_set_size()
1360 (too_many_pipe_buffers_hard(user_bufs) || in pipe_set_size()
1361 too_many_pipe_buffers_soft(user_bufs)) && in pipe_set_size()