]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit787886a1d682a08fb9ac225751e8ef91da5dfe83
tree01b9bcb875745c6439f708d20d53eed6b0c3d277
parentc1f1f2ce209d99d74acfb56afd6a9b55088544d3
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