diff options
author | Jan Kara <jack@suse.cz> | 2022-09-12 12:25:29 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-09-12 13:03:20 +0200 |
commit | 6c78973da0b11255d2668518ac1baba4c581811a (patch) | |
tree | 91bdd42c45c032f8bd97e80053f83bc201f655c3 /fs/udf | |
parent | d4d361ad00bac10701a8c14d8e1a2967bd2e2813 (diff) | |
download | linux-6c78973da0b11255d2668518ac1baba4c581811a.tar.gz linux-6c78973da0b11255d2668518ac1baba4c581811a.tar.bz2 linux-6c78973da0b11255d2668518ac1baba4c581811a.zip |
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 <yujie.liu@intel.com>
Link: https://lore.kernel.org/r/202209081443.593ab12-yujie.liu@intel.com
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/file.c b/fs/udf/file.c index 09aef77269fe..5c659e23e578 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, }; |