Thread (13 messages) 13 messages, 3 authors, 2018-11-16

Re: [PATCH 3/2] splice: increase pipe size in splice_direct_to_actor()

From: Dave Chinner <david@fromorbit.com>
Date: 2018-11-16 15:53:19
Also in: linux-fsdevel

On Thu, Nov 15, 2018 at 02:17:35AM -0800, Christoph Hellwig wrote:
quoted
+long pipe_set_max_safe_size(struct pipe_inode_info *pipe)
+{
+	pipe_set_size(pipe, pipe_max_size);
+	return pipe->buffers * PAGE_SIZE;
+}
This should probably return an unsigned value, given that we don't return
errors.  Then again the callers ignores the return value entirely.
Wouldn't it be easier to just call pipe_set_size from splice.c after
removing the static marker?
I didn't want to use pipe_max_size outside of the pipe code. it's
definitely simpler without a wrapper if using pipe_max_size directly
is acceptable.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help