]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: send: use btrfs_file_extent_end() in send_write_or_clone()
authorOmar Sandoval <osandov@fb.com>
Fri, 21 Aug 2020 07:39:53 +0000 (00:39 -0700)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:17 +0000 (12:13 +0200)
commitf73de6f374b5f06409ab035a593d63c1216553c5
treec915ea0c581460c4cb778e7ca7434d102c9e4a5d
parenta771dd8c1e7c49274cbbfa077b7ab62ea69c3513
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 <fdmanana@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c