From: Mike Marshall Date: Wed, 16 Dec 2020 21:14:08 +0000 (-0500) Subject: orangefs: add splice file operations X-Git-Tag: v5.11-rc1~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1048828c3dbd96c7e371fae658e5f40e6a45e99;p=thirdparty%2Flinux.git orangefs: add splice file operations Fix some xfstests regressions that started after 36e2c7421f02, "don't allow splice read/write without explicit ops". Thanks for help from Dave Chinner and Matthew Wilcox. Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index af375e049aae7..ec8ae4257975c 100644 --- a/fs/orangefs/file.c +++ b/fs/orangefs/file.c @@ -663,6 +663,8 @@ const struct file_operations orangefs_file_operations = { .unlocked_ioctl = orangefs_ioctl, .mmap = orangefs_file_mmap, .open = generic_file_open, + .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .flush = orangefs_flush, .release = orangefs_file_release, .fsync = orangefs_fsync,