diff options
author | Mike Marshall <hubcap@omnibond.com> | 2020-12-16 16:14:08 -0500 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2020-12-16 16:14:08 -0500 |
commit | c1048828c3dbd96c7e371fae658e5f40e6a45e99 (patch) | |
tree | 398157ca6c3e994e0d992f2c9295ae51b27dcb66 /fs/orangefs | |
parent | 2c85ebc57b3e1817b6ce1a6b703928e113a90442 (diff) | |
download | linux-c1048828c3dbd96c7e371fae658e5f40e6a45e99.tar.gz linux-c1048828c3dbd96c7e371fae658e5f40e6a45e99.tar.bz2 linux-c1048828c3dbd96c7e371fae658e5f40e6a45e99.zip |
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 <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/orangefs/file.c b/fs/orangefs/file.c index af375e049aae..ec8ae4257975 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, |