diff options
author | David Sterba <dsterba@suse.com> | 2016-11-08 17:56:24 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-30 13:45:17 +0100 |
commit | fba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec (patch) | |
tree | 077fa0c8f34cee3033a65885d3426d63e6ecbc4d /fs/btrfs/extent_io.c | |
parent | btrfs: use new helpers to set uuids in eb (diff) | |
download | linux-fba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec.tar.xz linux-fba1acf9ff77656e3b9f5c0f7b6a52c93e4932ec.zip |
btrfs: use specialized page copying helpers in btrfs_clone_extent_buffer
The copy_page is usually optimized and can be faster than memcpy.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 2ae731a0058a..bf719e3bcaf2 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4720,9 +4720,9 @@ struct extent_buffer *btrfs_clone_extent_buffer(struct extent_buffer *src) WARN_ON(PageDirty(p)); SetPageUptodate(p); new->pages[i] = p; + copy_page(page_address(p), page_address(src->pages[i])); } - copy_extent_buffer(new, src, 0, 0, src->len); set_bit(EXTENT_BUFFER_UPTODATE, &new->bflags); set_bit(EXTENT_BUFFER_DUMMY, &new->bflags); |