]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hostfs: support splice_write
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Jul 2021 21:12:42 +0000 (23:12 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 26 Aug 2021 20:28:02 +0000 (22:28 +0200)
There's really no good reason not to, and e.g. trace-cmd
currently requires it for the temporary per-CPU files.
Hook up splice_write just like everyone else does.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c

index 7d0c3dbb2898206ab77c54db916c7c70f81baa09..d5c9d886cd9f7bc9efdfda6edc2fdf0b4c059b3d 100644 (file)
@@ -381,6 +381,7 @@ static int hostfs_fsync(struct file *file, loff_t start, loff_t end,
 static const struct file_operations hostfs_file_fops = {
        .llseek         = generic_file_llseek,
        .splice_read    = generic_file_splice_read,
+       .splice_write   = iter_file_splice_write,
        .read_iter      = generic_file_read_iter,
        .write_iter     = generic_file_write_iter,
        .mmap           = generic_file_mmap,