Searched refs:max_usage (Results 1 – 3 of 3) sorted by relevance
/fs/ |
D | pipe.c | 253 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 381 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 408 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local 410 return !pipe_full(head, tail, max_usage) || in pipe_writable() 486 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write() 509 if (pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write() 543 if (!pipe_full(head, pipe->tail, pipe->max_usage)) in pipe_write() 574 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in pipe_write() 683 if (!pipe_full(head, tail, pipe->max_usage)) in pipe_poll() 811 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 …]
|
/fs/fuse/ |
D | dev.c | 731 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill() 916 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_page() 1399 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read() 1411 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
|