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

2013-07-05 Thread Josef Bacik
On Thu, Jul 04, 2013 at 05:24:09PM +0100, Filipe David Borba Manana 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 it instead

[PATCH v2] 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