Files
i2som-imx-linux/fs
Olga Kornievskaia a5f62d2c15 NFSv4.1 fix incorrect return value in copy_file_range
[ Upstream commit 0769663b4f ]

According to the NFSv4.2 spec if the input and output file is the
same file, operation should fail with EINVAL. However, linux
copy_file_range() system call has no such restrictions. Therefore,
in such case let's return EOPNOTSUPP and allow VFS to fallback
to doing do_splice_direct(). Also when copy_file_range is called
on an NFSv4.0 or 4.1 mount (ie., a server that doesn't support
COPY functionality), we also need to return EOPNOTSUPP and
fallback to a regular copy.

Fixes xfstest generic/075, generic/091, generic/112, generic/263
for all NFSv4.x versions.

Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-05-10 18:36:11 +02:00
..
2019-05-04 09:21:20 +02:00
2019-01-06 08:36:21 -05:00
2018-12-03 15:30:24 -06:00
2018-11-30 14:56:14 -08:00
2019-01-07 08:53:32 +01:00
2019-05-02 10:02:52 +02:00
2019-03-10 07:09:01 +01:00