Searched refs:pipe_bufs (Results 1 – 1 of 1) sorted by relevance
629 return atomic_long_add_return(new - old, &user->pipe_bufs); in account_pipe_buffers()654 unsigned long pipe_bufs = PIPE_DEF_BUFFERS; in alloc_pipe_info() local663 if (pipe_bufs * PAGE_SIZE > max_size && !capable(CAP_SYS_RESOURCE)) in alloc_pipe_info()664 pipe_bufs = max_size >> PAGE_SHIFT; in alloc_pipe_info()666 user_bufs = account_pipe_buffers(user, 0, pipe_bufs); in alloc_pipe_info()669 user_bufs = account_pipe_buffers(user, pipe_bufs, 1); in alloc_pipe_info()670 pipe_bufs = 1; in alloc_pipe_info()676 pipe->bufs = kcalloc(pipe_bufs, sizeof(struct pipe_buffer), in alloc_pipe_info()682 pipe->buffers = pipe_bufs; in alloc_pipe_info()689 (void) account_pipe_buffers(user, pipe_bufs, 0); in alloc_pipe_info()