aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tests/extent-buffer-tests.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2020-08-21 07:39:53 +0000
committerDavid Sterba <[email protected]>2020-10-07 10:13:17 +0000
commitc9a949af13d6d8983de086d9ecbf34c4c94da73e (patch)
treec915ea0c581460c4cb778e7ca7434d102c9e4a5d /fs/btrfs/tests/extent-buffer-tests.c
parentbtrfs: send: avoid copying file data (diff)
downloadkernel-c9a949af13d6d8983de086d9ecbf34c4c94da73e.tar.gz
kernel-c9a949af13d6d8983de086d9ecbf34c4c94da73e.zip
btrfs: send: use btrfs_file_extent_end() in send_write_or_clone()
send_write_or_clone() basically has an open-coded copy of btrfs_file_extent_end() except that it (incorrectly) aligns to PAGE_SIZE instead of sectorsize. Fix and simplify the code by using btrfs_file_extent_end(). Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Omar Sandoval <[email protected]> Reviewed-by: David Sterba <[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