]> 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)
commit5ae64af6b272c2751afa3ec05ca09d1ca907c609
tree01b9bcb875745c6439f708d20d53eed6b0c3d277
parentd401a23f7f95e8502d1efb184c0cd8c8cfc741ab
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