Searched refs:max_usage (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/fs/ |
D | pipe.c | 274 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 394 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read() 421 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local 423 return !pipe_full(head, tail, max_usage) || in pipe_writable() 506 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write() 553 if (!pipe_full(head, pipe->tail, pipe->max_usage)) in pipe_write() 585 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in pipe_write() 694 if (!pipe_full(head, tail, pipe->max_usage)) in pipe_poll() 822 pipe->max_usage = pipe_bufs; in alloc_pipe_info() 1314 if (pipe->max_usage > nr_slots) in pipe_resize_ring() [all …]
|
D | splice.c | 216 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe() 256 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe() 274 unsigned int max_usage = READ_ONCE(pipe->max_usage); in splice_grow_spd() local 276 spd->nr_pages_max = max_usage; in splice_grow_spd() 277 if (max_usage <= PIPE_DEF_BUFFERS) in splice_grow_spd() 280 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd() 281 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page), in splice_grow_spd() 335 npages = max_t(ssize_t, pipe->max_usage - used, 0); in copy_splice_read() 676 int nbufs = pipe->max_usage; in iter_file_splice_write() 701 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write() [all …]
|
/linux-6.12.1/include/linux/ |
D | pipe_fs_i.h | 63 unsigned int max_usage; member
|
/linux-6.12.1/fs/fuse/ |
D | dev.c | 766 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill() 948 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_page() 1430 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read() 1442 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
|
/linux-6.12.1/kernel/ |
D | watch_queue.c | 259 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
|
/linux-6.12.1/mm/ |
D | filemap.c | 2851 !pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in splice_folio_into_pipe() 2909 npages = max_t(ssize_t, pipe->max_usage - used, 0); in filemap_splice_read() 2968 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in filemap_splice_read()
|
D | shmem.c | 3249 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in splice_zeropage_into_pipe() 3277 npages = max_t(ssize_t, pipe->max_usage - used, 0); in shmem_file_splice_read() 3341 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in shmem_file_splice_read()
|