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

/linux-master/fs/
H A Dpipe.c274 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage);
394 was_full = pipe_full(pipe->head, pipe->tail, pipe->max_usage);
421 unsigned int max_usage = READ_ONCE(pipe->max_usage); local
423 return !pipe_full(head, tail, max_usage) ||
506 if (!pipe_full(head, pipe->tail, pipe->max_usage)) {
553 if (!pipe_full(head, pipe->tail, pipe->max_usage))
585 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage))
694 if (!pipe_full(head, tail, pipe->max_usage))
822 pipe->max_usage
[all...]
H A Dsplice.c216 while (!pipe_full(head, tail, pipe->max_usage)) {
256 } else if (pipe_full(head, tail, pipe->max_usage)) {
274 unsigned int max_usage = READ_ONCE(pipe->max_usage); local
276 spd->nr_pages_max = max_usage;
277 if (max_usage <= PIPE_DEF_BUFFERS)
280 spd->pages = kmalloc_array(max_usage, sizeof(struct page *), GFP_KERNEL);
281 spd->partial = kmalloc_array(max_usage, sizeof(struct partial_page),
335 npages = max_t(ssize_t, pipe->max_usage - used, 0);
676 int nbufs = pipe->max_usage;
[all...]
/linux-master/include/linux/
H A Dpipe_fs_i.h42 * @max_usage: The maximum number of slots that may be used in the ring
63 unsigned int max_usage; member in struct:pipe_inode_info
/linux-master/kernel/
H A Dwatch_queue.c259 if (nr_pages > pipe->max_usage &&
/linux-master/fs/fuse/
H A Ddev.c715 if (cs->nr_segs >= cs->pipe->max_usage)
900 if (cs->nr_segs >= cs->pipe->max_usage)
1383 bufs = kvmalloc_array(pipe->max_usage, sizeof(struct pipe_buffer),
1395 if (pipe_occupancy(pipe->head, pipe->tail) + cs.nr_segs > pipe->max_usage) {
/linux-master/mm/
H A Dshmem.c2955 if (!pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
2983 npages = max_t(ssize_t, pipe->max_usage - used, 0);
3047 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage))
H A Dfilemap.c2824 !pipe_full(pipe->head, pipe->tail, pipe->max_usage)) {
2882 npages = max_t(ssize_t, pipe->max_usage - used, 0);
2941 if (pipe_full(pipe->head, pipe->tail, pipe->max_usage))

Completed in 263 milliseconds