Btrfs: faster file extent item search in clone ioctl
authorFilipe David Borba Manana <fdmanana@gmail.com>
Mon, 13 Jan 2014 19:35:01 +0000 (19:35 +0000)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:20:35 +0000 (13:20 -0800)
commite4355f34ef9fc75a93875fd075137ef2ea378883
tree01b9bcb875745c6439f708d20d53eed6b0c3d277
parent1a4319cc3c495d5b6b8e41f4d4c73b950d54c2be
Btrfs: faster file extent item search in clone ioctl

When we are looking for file extent items that intersect the cloning
range, for each one that falls completely outside the range, don't
release the path and do another full tree search - just move on
to the next slot and copy the file extent item into our buffer only
if the item intersects the cloning range.

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c