]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/btrfs/ioctl.c
Btrfs: reuse cmp workspace in EXTENT_SAME ioctl
authorTimofey Titovets <nefelim4ag@gmail.com>
Wed, 2 May 2018 05:15:38 +0000 (08:15 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:24:07 +0000 (18:24 +0200)
commit67b07bd4bec53be0aa5a8496aef7a4ee2c7f97bf
tree043921c8337cdd8fef7138c6253944adef7f09fe
parentb67287682688a60d03e8c2c6d4689ea3a25d5d3c
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>
fs/btrfs/ioctl.c