Skip to content

Commit d777659

Browse files
Christoph Hellwigkdave
authored andcommitted
btrfs: wire up iter_file_splice_write
btrfs implements the iter_write op and thus can use the more efficient iov_iter based splice implementation. For now falling back to the less efficient default is pretty harmless, but I have a pending series that removes the default, and thus would cause btrfs to not support splice at all. Reported-by: Andy Lavr <[email protected]> Tested-by: Andy Lavr <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 230ed39 commit d777659

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/btrfs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,7 @@ const struct file_operations btrfs_file_operations = {
35093509
.read_iter = generic_file_read_iter,
35103510
.splice_read = generic_file_splice_read,
35113511
.write_iter = btrfs_file_write_iter,
3512+
.splice_write = iter_file_splice_write,
35123513
.mmap = btrfs_file_mmap,
35133514
.open = btrfs_file_open,
35143515
.release = btrfs_release_file,

0 commit comments

Comments
 (0)