Lines Matching refs:user_bufs
762 bool too_many_pipe_buffers_soft(unsigned long user_bufs) in too_many_pipe_buffers_soft() argument
766 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() argument
773 return hard_limit && user_bufs > hard_limit; in too_many_pipe_buffers_hard()
786 unsigned long user_bufs; in alloc_pipe_info() local
796 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
1350 user_bufs = account_pipe_buffers(pipe->user, pipe->nr_accounted, nr_slots); in pipe_set_size()
1353 (too_many_pipe_buffers_hard(user_bufs) || in pipe_set_size()
1354 too_many_pipe_buffers_soft(user_bufs)) && in pipe_set_size()