Searched refs:max_usage (Results 1 – 6 of 6) sorted by relevance
/linux-5.19.10/include/linux/ |
D | pipe_fs_i.h | 63 unsigned int max_usage; member 171 if (p_occupancy >= pipe->max_usage) in pipe_space_for_user() 174 if (p_space > pipe->max_usage) in pipe_space_for_user() 175 p_space = pipe->max_usage; in pipe_space_for_user()
|
/linux-5.19.10/fs/ |
D | pipe.c | 254 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 382 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 409 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local 411 return !pipe_full(head, tail, max_usage) || in pipe_writable() 489 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write() 512 if (pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write() 546 if (!pipe_full(head, pipe->tail, pipe->max_usage)) in pipe_write() 577 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in pipe_write() 686 if (!pipe_full(head, tail, pipe->max_usage)) in pipe_poll() 814 pipe->max_usage = pipe_bufs; in alloc_pipe_info() [all …]
|
D | splice.c | 200 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 240 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 258 unsigned int max_usage = READ_ONCE(pipe->max_usage); in splice_grow_spd() local 260 spd->nr_pages_max = max_usage; in splice_grow_spd() 261 if (max_usage <= PIPE_DEF_BUFFERS) in splice_grow_spd() 264 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd() 265 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page), in splice_grow_spd() 627 int nbufs = pipe->max_usage; in iter_file_splice_write() 648 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write() 650 nbufs = pipe->max_usage; in iter_file_splice_write() [all …]
|
/linux-5.19.10/fs/fuse/ |
D | dev.c | 713 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill() 897 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_page() 1380 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read() 1392 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
|
/linux-5.19.10/kernel/ |
D | watch_queue.c | 263 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
|
/linux-5.19.10/lib/ |
D | iov_iter.c | 413 if (pipe_full(i_head, p_tail, pipe->max_usage)) in copy_page_to_iter_pipe() 574 while (!pipe_full(iter_head, p_tail, pipe->max_usage)) { in push_pipe()
|