mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 11:51:27 +00:00
udf: Support splicing to file
Add explicit support for splicing from pipe to file through iter_file_splice_write(). Commit36e2c7421f
("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:36e2c7421f
("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>
This commit is contained in:
parent
d4d361ad00
commit
6c78973da0
@ -252,6 +252,7 @@ const struct file_operations udf_file_operations = {
|
|||||||
.release = udf_release_file,
|
.release = udf_release_file,
|
||||||
.fsync = generic_file_fsync,
|
.fsync = generic_file_fsync,
|
||||||
.splice_read = generic_file_splice_read,
|
.splice_read = generic_file_splice_read,
|
||||||
|
.splice_write = iter_file_splice_write,
|
||||||
.llseek = generic_file_llseek,
|
.llseek = generic_file_llseek,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user