]> git.karo-electronics.de Git - linux-beck.git/commit
btrfs: add optimized version of eb to eb copy
authorDavid Sterba <dsterba@suse.com>
Tue, 8 Nov 2016 17:30:31 +0000 (18:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:17 +0000 (13:45 +0100)
commit58e8012cc12b3cdebea118981c4fd7136d52f2c7
tree5cda8d4a202fc99ee64be2de43c251b4982c993e
parentb159fa2808b1b53d784807a48ad95fa809be10b0
btrfs: add optimized version of eb to eb copy

Using copy_extent_buffer is suitable for copying betwenn buffers from an
arbitrary offset and deals with page boundaries. This is not necessary
when doing a full extent_buffer-to-extent_buffer copy. We can utilize
the copy_page helper as well.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h