]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9dde787c420b914cab703f539ad14f4860144c7
tree043921c8337cdd8fef7138c6253944adef7f09fe
parent4e9c27f16ca8b6758ea3521e2ac9c047b38e0c05
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