]> Git Repo - linux.git/commitdiff
fuse add copy_file_range to direct io fops
authorMiklos Szeredi <[email protected]>
Thu, 24 Jan 2019 09:40:17 +0000 (10:40 +0100)
committerMiklos Szeredi <[email protected]>
Wed, 13 Feb 2019 12:15:14 +0000 (13:15 +0100)
Nothing preventing copy_file_range to work on files opened with
FOPEN_DIRECT_IO.

Fixes: 88bc7d5097a1 ("fuse: add support for copy_file_range()")
Signed-off-by: Miklos Szeredi <[email protected]>
fs/fuse/file.c

index 3e9e57c765f7c9a5a74c9e2582179095666273f5..c86266d4eac38c5c6859315b242c2c6122f408c8 100644 (file)
@@ -3181,6 +3181,7 @@ static const struct file_operations fuse_direct_io_file_operations = {
        .compat_ioctl   = fuse_file_compat_ioctl,
        .poll           = fuse_file_poll,
        .fallocate      = fuse_file_fallocate,
+       .copy_file_range = fuse_copy_file_range,
 };
 
 static const struct address_space_operations fuse_file_aops  = {
This page took 0.059753 seconds and 4 git commands to generate.