]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: vfs_dedupe_file_range() doesn't return EOPNOTSUPP
authorDave Chinner <dchinner@redhat.com>
Mon, 19 Nov 2018 21:31:12 +0000 (13:31 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 21 Nov 2018 18:10:54 +0000 (10:10 -0800)
commitdcbd06aa33fa7833fc5d05f2a473d7234bb4a994
tree86c87a32c846defd14da23cface9d4f6a8ee677e
parent00220958b505dd8b920ea9bc361503d16baa2e55
vfs: vfs_dedupe_file_range() doesn't return EOPNOTSUPP

It returns EINVAL when the operation is not supported by the
filesystem. Fix it to return EOPNOTSUPP to be consistent with
the man page and clone_file_range().

Clean up the inconsistent error return handling while I'm there.
(I know, lipstick on a pig, but every little bit helps...)

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/read_write.c