]> git.baikalelectronics.ru Git - kernel.git/commitdiff
orangefs: add splice file operations
authorMike Marshall <hubcap@omnibond.com>
Wed, 16 Dec 2020 21:14:08 +0000 (16:14 -0500)
committerMike Marshall <hubcap@omnibond.com>
Wed, 16 Dec 2020 21:14:08 +0000 (16:14 -0500)
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>
fs/orangefs/file.c

index af375e049aae7794f71dd829678d2a601be0e2d2..ec8ae4257975c9e1a5024876b49751b9b31c100e 100644 (file)
@@ -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,