Searched refs:pipe_bufs (Results 1 – 1 of 1) sorted by relevance
644 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()669 unsigned long pipe_bufs = PIPE_DEF_BUFFERS; in alloc_pipe_info() local678 if (pipe_bufs * PAGE_SIZE > max_size && !capable(CAP_SYS_RESOURCE)) in alloc_pipe_info()679 pipe_bufs = max_size >> PAGE_SHIFT; in alloc_pipe_info()681 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()684 user_bufs = account_pipe_buffers(user, pipe_bufs, PIPE_MIN_DEF_BUFFERS); in alloc_pipe_info()685 pipe_bufs = PIPE_MIN_DEF_BUFFERS; in alloc_pipe_info()691 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()697 pipe->buffers = pipe_bufs; in alloc_pipe_info()704 (void) account_pipe_buffers(user, pipe_bufs, 0); in alloc_pipe_info()