btrfs: wire up iter_file_splice_write
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Jul 2020 16:22:06 +0000 (18:22 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 9 Jul 2020 17:57:58 +0000 (19:57 +0200)
commitd77765911385b65fc82d74ab71b8983cddfe0b58
treeef0afe1a04d8288e4383f1194eb06d5203fa9c8f
parent230ed397435e85b54f055c524fcb267ae2ce3bc4
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 <andy.lavr@gmail.com>
Tested-by: Andy Lavr <andy.lavr@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c