]> git.baikalelectronics.ru Git - kernel.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)
commit62a0c3aedbd7a14c6887c8dee31f1d07a3d1c431
tree5cda8d4a202fc99ee64be2de43c251b4982c993e
parent50e58189dbd77956638a07373a4e1cf16b86f56f
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