commit | 67b07bd4bec53be0aa5a8496aef7a4ee2c7f97bf | [log] [tgz] |
---|---|---|
author | Timofey Titovets <nefelim4ag@gmail.com> | Wed May 02 08:15:38 2018 +0300 |
committer | David Sterba <dsterba@suse.com> | Mon May 28 18:24:07 2018 +0200 |
tree | 043921c8337cdd8fef7138c6253944adef7f09fe | |
parent | b67287682688a60d03e8c2c6d4689ea3a25d5d3c [diff] |
Btrfs: reuse cmp workspace in EXTENT_SAME ioctl We support big dedup requests by splitting range to smaller parts, and call dedupe logic on each of them. Instead of repeated allocation and deallocation, allocate once at the beginning and reuse in the iteration. Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>