Skip to content

shmem, splice: Fixes for shmem_splice_read()

David Howells linux-block linux-fsdevel linux-mm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2shmem: Fix splice of a missing pagemm/shmem.c+1 -14 replies
2/2shmem: Apply a couple of filemap_splice_read() fixes to shmem_splice_read()mm/shmem.c+4 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] shmem, splice: Fixes for shmem_splice_read()

Hi Hugh,

Here are a couple of fix patches for shmem_splice_read():

(1) Fix the splicing of a zero_page in place of a missing page. This should only splice in the calculated part of the page and everything to the end of the page.

(2) Apply a couple of fixes already applied to filemap_splice_read(), including using in->f_mapping_host rather than file_inode(in) and ignoring splices that start at or after s_maxbytes.

I've pushed the patches here also:

https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=splice-fixes

David

David Howells (2):
shmem: Fix splice of a missing page
shmem: Apply a couple of filemap_splice_read() fixes to
shmem_splice_read()

 mm/shmem.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)