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)
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

Simple merge