Home
last modified time | relevance | path

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

/fs/
Dsplice.c199 while (pipe->nrbufs < pipe->buffers) { in splice_to_pipe()
200 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in splice_to_pipe()
236 } else if (pipe->nrbufs == pipe->buffers) { in add_to_pipe()
239 int newbuf = (pipe->curbuf + pipe->nrbufs) & (pipe->buffers - 1); in add_to_pipe()
255 unsigned int buffers = READ_ONCE(pipe->buffers); in splice_grow_spd() local
257 spd->nr_pages_max = buffers; in splice_grow_spd()
258 if (buffers <= PIPE_DEF_BUFFERS) in splice_grow_spd()
261 spd->pages = kmalloc_array(buffers, sizeof(struct page *), GFP_KERNEL); in splice_grow_spd()
262 spd->partial = kmalloc_array(buffers, sizeof(struct partial_page), in splice_grow_spd()
377 if (pipe->nrbufs == pipe->buffers) in default_file_splice_read()
[all …]
Dpipe.c324 curbuf = (curbuf + 1) & (pipe->buffers - 1); in pipe_read()
404 (pipe->buffers - 1); in pipe_write()
435 if (bufs < pipe->buffers) { in pipe_write()
436 int newbuf = (pipe->curbuf + bufs) & (pipe->buffers-1); in pipe_write()
479 if (bufs < pipe->buffers) in pipe_write()
528 buf = (buf+1) & (pipe->buffers - 1); in pipe_ioctl()
558 mask |= (nrbufs < pipe->buffers) ? EPOLLOUT | EPOLLWRNORM : 0; in pipe_poll()
682 pipe->buffers = pipe_bufs; in alloc_pipe_info()
700 (void) account_pipe_buffers(pipe->user, pipe->buffers, 0); in free_pipe_info()
702 for (i = 0; i < pipe->buffers; i++) { in free_pipe_info()
[all …]
/fs/nilfs2/
Dioctl.c557 struct list_head *buffers) in nilfs_ioctl_move_inode_block() argument
594 list_add_tail(&bh->b_assoc_buffers, buffers); in nilfs_ioctl_move_inode_block()
619 LIST_HEAD(buffers); in nilfs_ioctl_move_blocks()
645 &buffers); in nilfs_ioctl_move_blocks()
657 list_for_each_entry_safe(bh, n, &buffers, b_assoc_buffers) { in nilfs_ioctl_move_blocks()
669 list_for_each_entry_safe(bh, n, &buffers, b_assoc_buffers) { in nilfs_ioctl_move_blocks()
/fs/fuse/
Ddev.c708 if (cs->nr_segs == cs->pipe->buffers) in fuse_copy_fill()
884 if (cs->nr_segs == cs->pipe->buffers) in fuse_ref_page()
1346 bufs = kvmalloc_array(pipe->buffers, sizeof(struct pipe_buffer), in fuse_dev_splice_read()
1358 if (pipe->nrbufs + cs.nr_segs > pipe->buffers) { in fuse_dev_splice_read()
1964 rem += pipe->bufs[(pipe->curbuf + idx) & (pipe->buffers - 1)].len; in fuse_dev_splice_write()
1975 BUG_ON(nbuf >= pipe->buffers); in fuse_dev_splice_write()
1983 pipe->curbuf = (pipe->curbuf + 1) & (pipe->buffers - 1); in fuse_dev_splice_write()
/fs/xfs/
Dxfs_qm.c406 struct list_head buffers; member
462 xfs_buf_delwri_queue(bp, &isol->buffers); in xfs_qm_dquot_isolate()
508 INIT_LIST_HEAD(&isol.buffers); in xfs_qm_shrink_scan()
514 error = xfs_buf_delwri_submit(&isol.buffers); in xfs_qm_shrink_scan()
/fs/btrfs/
Dextent_io.c37 static LIST_HEAD(buffers);
78 while (!list_empty(&buffers)) { in btrfs_leak_debug_check()
79 eb = list_entry(buffers.next, struct extent_buffer, leak_list); in btrfs_leak_debug_check()
4883 btrfs_leak_debug_add(&eb->leak_list, &buffers); in __alloc_extent_buffer()