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() 1342 if (pipe->max_usage > nr_slots) in pipe_resize_ring() 1343 pipe->max_usage = nr_slots; in pipe_resize_ring() 1348 pipe->max_usage = nr_slots; in pipe_resize_ring() 1385 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_objs(struct page *, max_usage); in splice_grow_spd() 279 spd->partial = kmalloc_objs(struct partial_page, max_usage); in splice_grow_spd() 332 npages = max_t(ssize_t, pipe->max_usage - used, 0); in copy_splice_read() 671 int 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() 274 * and max_usage this pipe to the number that was actually charged to 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_objs(struct pipe_buffer, pipe->max_usage); in fuse_dev_splice_read() 1612 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 | 3566 npages = max_t(ssize_t, pipe->max_usage - used, 0); in shmem_file_splice_read()
|