Home
last modified time | relevance | path

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

/linux-6.6.21/fs/
Dpipe.c254 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read()
383 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_read()
410 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local
412 return !pipe_full(head, tail, max_usage) || in pipe_writable()
488 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write()
511 if (pipe_full(head, pipe->tail, pipe->max_usage)) { in pipe_write()
544 if (!pipe_full(head, pipe->tail, pipe->max_usage)) in pipe_write()
576 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in pipe_write()
685 if (!pipe_full(head, tail, pipe->max_usage)) in pipe_poll()
813 pipe->max_usage = pipe_bufs; in alloc_pipe_info()
[all …]
Dsplice.c215 while (!pipe_full(head, tail, pipe->max_usage)) { in splice_to_pipe()
255 } else if (pipe_full(head, tail, pipe->max_usage)) { in add_to_pipe()
273 unsigned int max_usage = READ_ONCE(pipe->max_usage); in splice_grow_spd() local
275 spd->nr_pages_max = max_usage; in splice_grow_spd()
276 if (max_usage <= PIPE_DEF_BUFFERS) in splice_grow_spd()
279 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd()
280 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page), in splice_grow_spd()
334 npages = max_t(ssize_t, pipe->max_usage - used, 0); in copy_splice_read()
675 int nbufs = pipe->max_usage; in iter_file_splice_write()
696 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write()
[all …]
/linux-6.6.21/include/linux/
Dpipe_fs_i.h63 unsigned int max_usage; member
/linux-6.6.21/fs/fuse/
Ddev.c715 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_copy_fill()
900 if (cs->nr_segs >= cs->pipe->max_usage) in fuse_ref_page()
1383 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer), in fuse_dev_splice_read()
1395 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) { in fuse_dev_splice_read()
/linux-6.6.21/kernel/
Dwatch_queue.c259 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
/linux-6.6.21/mm/
Dfilemap.c2858 !pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in splice_folio_into_pipe()
2916 npages = max_t(ssize_t, pipe->max_usage - used, 0); in filemap_splice_read()
2975 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in filemap_splice_read()
Dshmem.c2918 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) { in splice_zeropage_into_pipe()
2946 npages = max_t(ssize_t, pipe->max_usage - used, 0); in shmem_file_splice_read()
3010 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage)) in shmem_file_splice_read()