Skip to content

Commit 2eafb66

Browse files
bbkzzdubeyko
authored andcommitted
hfsplus: make splice write available again
Since 5.10, splice() or sendfile() return EINVAL. This was caused by commit 36e2c74 ("fs: don't allow splice read/write without explicit ops"). This patch initializes the splice_write field in file_operations, like most file systems do, to restore the functionality. Fixes: 36e2c74 ("fs: don't allow splice read/write without explicit ops") Signed-off-by: Yangtao Li <[email protected]> Reviewed-by: Viacheslav Dubeyko <[email protected]> Signed-off-by: Viacheslav Dubeyko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Viacheslav Dubeyko <[email protected]>
1 parent d3ed6d6 commit 2eafb66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/hfsplus/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ static const struct file_operations hfsplus_file_operations = {
368368
.write_iter = generic_file_write_iter,
369369
.mmap = generic_file_mmap,
370370
.splice_read = filemap_splice_read,
371+
.splice_write = iter_file_splice_write,
371372
.fsync = hfsplus_file_fsync,
372373
.open = hfsplus_file_open,
373374
.release = hfsplus_file_release,

0 commit comments

Comments
 (0)