Home
last modified time | relevance | path

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

/linux/fs/
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.h90 unsigned int max_usage; member
208 return pipe_full(pipe->head, pipe->tail, pipe->max_usage); in pipe_is_full()
/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.c3073 npages = max_t(ssize_t, pipe->max_usage - used, 0); in filemap_splice_read()