aboutsummaryrefslogtreecommitdiff
path: root/lib/locking-selftest-rsem.h
diff options
context:
space:
mode:
authorAl Viro2022-06-13 14:30:15 -0400
committerAl Viro2022-08-08 22:37:16 -0400
commit47b7fcae419dc940e3fb8e58088a5b80ad813bbf (patch)
treefb6fc1b6d11438ca0b0b463133b5e80351b5dc57 /lib/locking-selftest-rsem.h
parent2dcedb2a549a4d7430538213b1b28ef7271bc0aa (diff)
ITER_PIPE: helpers for adding pipe buffers
There are only two kinds of pipe_buffer in the area used by ITER_PIPE. 1) anonymous - copy_to_iter() et.al. end up creating those and copying data there. They have zero ->offset, and their ->ops points to default_pipe_page_ops. 2) zero-copy ones - those come from copy_page_to_iter(), and page comes from caller. ->offset is also caller-supplied - it might be non-zero. ->ops points to page_cache_pipe_buf_ops. Move creation and insertion of those into helpers - push_anon(pipe, size) and push_page(pipe, page, offset, size) resp., separating them from the "could we avoid creating a new buffer by merging with the current head?" logics. Acked-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib/locking-selftest-rsem.h')
0 files changed, 0 insertions, 0 deletions