Home
last modified time | relevance | path

Searched refs:max_usage (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/fs/
Dpipe.c274 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 …]
Dsplice.c216 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/
Dpipe_fs_i.h63 unsigned int max_usage; member
/linux-6.12.1/fs/fuse/
Ddev.c766 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/
Dwatch_queue.c259 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
/linux-6.12.1/mm/
Dfilemap.c2851 !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()
Dshmem.c3249 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()