Searched refs:max_usage (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/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() 624 int nbufs = pipe->max_usage; in iter_file_splice_write() 645 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write() 647 nbufs = pipe->max_usage; in iter_file_splice_write() [all …]
|
/linux-6.1.9/include/linux/ |
D | pipe_fs_i.h | 63 unsigned int max_usage; member
|
/linux-6.1.9/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-6.1.9/lib/ |
D | iov_iter.c | 294 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in append_pipe() 329 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in copy_page_to_iter_pipe() 449 *npages = max((int)pipe->max_usage - used, 0); in pipe_npages()
|
/linux-6.1.9/kernel/ |
D | watch_queue.c | 263 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
|