Message ID | 1441050606-40897-4-git-send-email-andros@netapp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/read_write.c b/fs/read_write.c index da28205..2a4b7bd 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -1395,8 +1395,8 @@ ssize_t vfs_copy_file_range(struct file *file_in, loff_t pos_in, return ret; ret = -ENOTSUPP; - if (file_in->f_op->copy_file_range) - ret = file_in->f_op->copy_file_range(file_in, pos_in, file_out, + if (file_out->f_op->copy_file_range) + ret = file_out->f_op->copy_file_range(file_in, pos_in, file_out, pos_out, len, flags); if (ret == -ENOTSUPP) ret = do_splice_direct(file_in, &pos_in, file_out, &pos_out, len, flags);