From: Jan Kara Date: Mon, 12 Sep 2022 10:25:29 +0000 (+0200) Subject: udf: Support splicing to file X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6c78973da0b11255d2668518ac1baba4c581811a;p=linux.git udf: Support splicing to file Add explicit support for splicing from pipe to file through iter_file_splice_write(). Commit 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") removed the default .splice_write operation which effectively removed UDF support for splicing from pipe. Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") Reported-by: kernel test robot Link: https://lore.kernel.org/r/202209081443.593ab12-yujie.liu@intel.com Signed-off-by: Jan Kara --- diff --git a/fs/udf/file.c b/fs/udf/file.c index 09aef77269fe4..5c659e23e578f 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c @@ -252,6 +252,7 @@ const struct file_operations udf_file_operations = { .release = udf_release_file, .fsync = generic_file_fsync, .splice_read = generic_file_splice_read, + .splice_write = iter_file_splice_write, .llseek = generic_file_llseek, };