| Date | Sat, 20 May 2023 11:14:14 +0200 | From | Christian Brauner <> | Subject | Re: [PATCH v21 01/30] splice: Fix filemap of a blockdev |
| |
On Sat, May 20, 2023 at 01:00:20AM +0100, David Howells wrote: > Fix filemap_splice_read() to use file->f_mapping->host, not file->f_inode, > as the source of the file size because in the case of a block device, > file->f_inode points to the block-special file (which is typically 0 > length) and not the backing store. > > Fixes: 07073eb01c5f ("splice: Add a func to do a splice from a buffered file without ITER_PIPE") > Signed-off-by: David Howells <dhowells@redhat.com> > Reviewed-by: Christoph Hellwig <hch@lst.de> > cc: Steve French <stfrench@microsoft.com> > cc: Jens Axboe <axboe@kernel.dk> > cc: Al Viro <viro@zeniv.linux.org.uk> > cc: David Hildenbrand <david@redhat.com> > cc: John Hubbard <jhubbard@nvidia.com> > cc: linux-mm@kvack.org > cc: linux-block@vger.kernel.org > cc: linux-fsdevel@vger.kernel.org > ---
Reviewed-by: Christian Brauner <brauner@kernel.org>
|