Searched refs:max_usage (Results 1 – 7 of 7) sorted by relevance
| /linux/fs/ |
| H A D | pipe.c | 360 wake_writer |= pipe_full(head, tail, pipe->max_usage); in anon_pipe_read() 424 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local 426 return !pipe_full(idx.head, idx.tail, max_usage) || in pipe_writable() 510 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in anon_pipe_write() 696 if (!pipe_full(idx.head, idx.tail, pipe->max_usage)) in pipe_poll() 824 pipe->max_usage = pipe_bufs; in alloc_pipe_info() 1343 if (pipe->max_usage > nr_slots) in pipe_resize_ring() 1344 pipe->max_usage = nr_slots; in pipe_resize_ring() 1349 pipe->max_usage = nr_slots; in pipe_resize_ring() 1386 if (nr_slots > pipe->max_usage && in pipe_set_size() [all …]
|
| H A D | splice.c | 215 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 254 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 272 unsigned int max_usage = READ_ONCE(pipe->max_usage); in splice_grow_spd() local 274 spd->nr_pages_max = max_usage; in splice_grow_spd() 275 if (max_usage <= PIPE_DEF_BUFFERS) in splice_grow_spd() 278 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd() 279 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page), in splice_grow_spd() 333 npages = max_t(ssize_t, pipe->max_usage - used, 0); in copy_splice_read() 672 int nbufs = pipe->max_usage; in iter_file_splice_write() 697 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write() [all …]
|
| /linux/include/linux/ |
| H A D | pipe_fs_i.h | 90 unsigned int max_usage; member 208 return pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_is_full()
|
| /linux/kernel/ |
| H A D | watch_queue.c | 258 if (nr_pages > pipe->max_usage && in watch_queue_set_size() 277 pipe->max_usage = nr_pages; in watch_queue_set_size()
|
| /linux/fs/fuse/ |
| H A D | dev.c | 897 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill() 1088 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_folio() 1601 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read() 1613 if (pipe_buf_usage(pipe) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
|
| /linux/mm/ |
| H A D | filemap.c | 3067 npages = max_t(ssize_t, pipe->max_usage - used, 0); in filemap_splice_read()
|
| H A D | shmem.c | 3554 npages = max_t(ssize_t, pipe->max_usage - used, 0); in shmem_file_splice_read()
|