diff options
| author | Omar Sandoval <[email protected]> | 2020-08-21 07:39:52 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-10-07 10:13:17 +0000 |
| commit | 8c7d9fe06f5bb87dce356dcc9ea7c003b529e6ba (patch) | |
| tree | 0a4f7cfc7e9671dd2c2a4b81a3b528bbbb91ea28 /fs/btrfs/tests/extent-buffer-tests.c | |
| parent | btrfs: send: get rid of i_size logic in send_write() (diff) | |
| download | kernel-8c7d9fe06f5bb87dce356dcc9ea7c003b529e6ba.tar.gz kernel-8c7d9fe06f5bb87dce356dcc9ea7c003b529e6ba.zip | |
btrfs: send: avoid copying file data
send_write() currently copies from the page cache to sctx->read_buf, and
then from sctx->read_buf to sctx->send_buf. Similarly, send_hole()
zeroes sctx->read_buf and then copies from sctx->read_buf to
sctx->send_buf. However, if we write the TLV header manually, we can
copy to sctx->send_buf directly and get rid of sctx->read_buf.
Reviewed-by: Filipe Manana <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Omar Sandoval <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tests/extent-buffer-tests.c')
0 files changed, 0 insertions, 0 deletions
