Re: [PATCH 2/4] splice: Provide pipe_head_buf() helper

From: Christoph Hellwig
Date: Mon Feb 13 2023 - 09:45:55 EST


On Mon, Feb 13, 2023 at 01:46:17PM +0000, David Howells wrote:
> Provide a helper, pipe_head_buf(), to get the current head buffer from a
> pipe. Implement this as a wrapper around a more general function,
> pipe_buf(), that gets a specified buffer.

Looks good:

Reviewed-by: Christoph Hellwig <hch@xxxxxx>

There's also a bunch of spots in existing code that should use this
helper.