[PATCH] Btrfs-progs: fix optimization in btrfs_lookup_extent_info

2013-07-04 Thread Filipe David Borba Manana
If we did a tree search with the goal to find a metadata item but the search failed with return value 1, we attempt to see if in the same leaf there's a corresponding extent item, and if there's one, just use it instead of doing another tree search for this extent item. The check in the leaf was

Re: [PATCH] Btrfs-progs: fix optimization in btrfs_lookup_extent_info

2013-07-04 Thread Filipe David Manana
On Thu, Jul 4, 2013 at 4:48 PM, Filipe David Borba Manana fdman...@gmail.com wrote: If we did a tree search with the goal to find a metadata item but the search failed with return value 1, we attempt to see if in the same leaf there's a corresponding extent item, and if there's one, just use