]> 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)
commit8a457130fb0646b0db94216d2b357d85c8ec9e26
treeed4d1116d151955bd47556db38f86cb7bb751075
parent68ed2672b8fdb9454c449f573990714135c93adc
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: 287a40258a1c ("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