Home
last modified time | relevance | path

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

/linux/fs/
H A Dpipe.c435 wake_writer |= pipe_full(head, tail, pipe->max_usage); in anon_pipe_read()
500 unsigned int max_usage = READ_ONCE(pipe->max_usage); in pipe_writable() local
502 return !pipe_full(idx.head, idx.tail, max_usage) || in pipe_writable()
586 if (!pipe_full(head, pipe->tail, pipe->max_usage)) { in anon_pipe_write()
779 if (!pipe_full(idx.head, idx.tail, pipe->max_usage)) in pipe_poll()
907 pipe->max_usage = pipe_bufs; in alloc_pipe_info()
1423 if (pipe->max_usage > nr_slots) in pipe_resize_ring()
1424 pipe->max_usage = nr_slots; in pipe_resize_ring()
1429 pipe->max_usage = nr_slots; in pipe_resize_ring()
1466 if (nr_slots > pipe->max_usage && in pipe_set_size()
[all …]
H A Dsplice.c215 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()
696 if (unlikely(nbufs < pipe->max_usage)) { in iter_file_splice_write()
[all …]
/linux/include/linux/
H A Dpipe_fs_i.h86 * @max_usage: The maximum number of slots that may be used in the ring
108 unsigned int max_usage;
226 return pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_buf_usage()
90 unsigned int max_usage; global() member
/linux/kernel/
H A Dwatch_queue.c258 if (nr_pages > pipe->max_usage && in watch_queue_set_size()
277 pipe->max_usage = nr_pages; in watch_queue_set_size()
/linux/mm/
H A Dfilemap.c3087 npages = max_t(ssize_t, pipe->max_usage - used, 0); in filemap_splice_read()
H A Dshmem.c3488 npages = max_t(ssize_t, pipe->max_usage - used, 0); in shmem_file_splice_read()