Re: [PATCH 1/2] shmem: Fix splice of a missing page

Andrew Morton
2023-07-27T16:35:43Z

On Thu, 27 Jul 2023 17:10:15 +0100 David Howells <dhowells@redhat.com> wrote:

> Fix shmem_splice_read() to splice only part of the partial page at the end
> of a splice and not all of it.
>
> This can be seen by splicing from a tmpfs file that's not a multiple of
> PAGE_SIZE in size. Without this fix, it splices extra data to round up to
> PAGE_SIZE.

This is already in mm-unstable (and hence linux-next) via Hugh's
"shmem: minor fixes to splice-read implementation"
(https://lkml.kernel.org/r/32c72c9c-72a8-115f-407d-f0148f368@google.com)