Lines Matching refs:user
595 atomic_long_add(new - old, &pipe->user->pipe_bufs); in account_pipe_buffers()
598 static bool too_many_pipe_buffers_soft(struct user_struct *user) in too_many_pipe_buffers_soft() argument
601 atomic_long_read(&user->pipe_bufs) >= pipe_user_pages_soft; in too_many_pipe_buffers_soft()
604 static bool too_many_pipe_buffers_hard(struct user_struct *user) in too_many_pipe_buffers_hard() argument
607 atomic_long_read(&user->pipe_bufs) >= pipe_user_pages_hard; in too_many_pipe_buffers_hard()
617 struct user_struct *user = get_current_user(); in alloc_pipe_info() local
619 if (!too_many_pipe_buffers_hard(user)) { in alloc_pipe_info()
620 if (too_many_pipe_buffers_soft(user)) in alloc_pipe_info()
629 pipe->user = user; in alloc_pipe_info()
634 free_uid(user); in alloc_pipe_info()
646 free_uid(pipe->user); in free_pipe_info()
1110 } else if ((too_many_pipe_buffers_hard(pipe->user) || in pipe_fcntl()
1111 too_many_pipe_buffers_soft(pipe->user)) && in pipe_fcntl()