]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix copy_file_range()
authorDavid Howells <dhowells@redhat.com>
Tue, 27 Oct 2020 09:39:04 +0000 (09:39 +0000)
committerDavid Howells <dhowells@redhat.com>
Tue, 27 Oct 2020 22:05:56 +0000 (22:05 +0000)
commite2ed117b43612d92477d470b1c8a49d302df9a33
treeed4d1116d151955bd47556db38f86cb7bb751075
parenta1fe7c755400af92f0070a66f48f00b659aeacac
afs: Fix copy_file_range()

The prevention of splice-write without explicit ops made the
copy_file_write() syscall to an afs file (as done by the generic/112
xfstest) fail with EINVAL.

Fix by using iter_file_splice_write() for afs.

Fixes: ec25677859f2 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/afs/file.c