linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] shmem, splice: Fixes for shmem_splice_read()
@ 2023-07-27 16:10 David Howells
  2023-07-27 16:10 ` [PATCH 1/2] shmem: Fix splice of a missing page David Howells
  2023-07-27 16:10 ` [PATCH 2/2] shmem: Apply a couple of filemap_splice_read() fixes to shmem_splice_read() David Howells
  0 siblings, 2 replies; 9+ messages in thread
From: David Howells @ 2023-07-27 16:10 UTC (permalink / raw)
  To: Hugh Dickins
  Cc: David Howells, Andrew Morton, Christoph Hellwig, Jens Axboe,
	Al Viro, John Hubbard, David Hildenbrand, Matthew Wilcox,
	Chuck Lever, linux-block, linux-fsdevel, linux-mm

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(-)


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-07-27 19:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 16:10 [PATCH 0/2] shmem, splice: Fixes for shmem_splice_read() David Howells
2023-07-27 16:10 ` [PATCH 1/2] shmem: Fix splice of a missing page David Howells
2023-07-27 16:35   ` Andrew Morton
2023-07-27 16:47   ` David Howells
2023-07-27 18:45     ` Hugh Dickins
2023-07-27 19:49     ` David Howells
2023-07-27 16:10 ` [PATCH 2/2] shmem: Apply a couple of filemap_splice_read() fixes to shmem_splice_read() David Howells
2023-07-27 19:23   ` Hugh Dickins
2023-07-27 19:50   ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).