Re: [PATCH] Btrfs: optimize btrfs_lookup_extent_info() - extent refcount mismatches?

2013-12-07 Thread Filipe David Manana
On Tue, Dec 3, 2013 at 6:28 PM, Josef Bacik jo...@toxicpanda.com wrote: On Tue, Dec 3, 2013 at 8:43 AM, David Sterba dste...@suse.cz wrote: On Fri, Nov 29, 2013 at 07:55:37PM +, Filipe David Manana wrote: On Fri, Nov 29, 2013 at 3:45 PM, David Sterba dste...@suse.cz wrote: Hi, On Fri,

Re: [PATCH] Btrfs: optimize btrfs_lookup_extent_info() - extent refcount mismatches?

2013-12-03 Thread David Sterba
On Fri, Nov 29, 2013 at 07:55:37PM +, Filipe David Manana wrote: On Fri, Nov 29, 2013 at 3:45 PM, David Sterba dste...@suse.cz wrote: Hi, On Fri, Jul 05, 2013 at 09:32:05PM +0100, Filipe David Borba Manana wrote: If we're looking for a metadata item in the tree and the search fails

Re: [PATCH] Btrfs: optimize btrfs_lookup_extent_info() - extent refcount mismatches?

2013-12-03 Thread Josef Bacik
On Tue, Dec 3, 2013 at 8:43 AM, David Sterba dste...@suse.cz wrote: On Fri, Nov 29, 2013 at 07:55:37PM +, Filipe David Manana wrote: On Fri, Nov 29, 2013 at 3:45 PM, David Sterba dste...@suse.cz wrote: Hi, On Fri, Jul 05, 2013 at 09:32:05PM +0100, Filipe David Borba Manana wrote: If

Re: [PATCH] Btrfs: optimize btrfs_lookup_extent_info() - extent refcount mismatches?

2013-11-29 Thread David Sterba
Hi, On Fri, Jul 05, 2013 at 09:32:05PM +0100, Filipe David Borba Manana wrote: If we're looking for a metadata item in the tree and the search fails with return value of 1, and the slot doesn't point to the first item in the leaf, check if the previous item in the leaf corresponds to an

Re: [PATCH] Btrfs: optimize btrfs_lookup_extent_info() - extent refcount mismatches?

2013-11-29 Thread Filipe David Manana
On Fri, Nov 29, 2013 at 3:45 PM, David Sterba dste...@suse.cz wrote: Hi, On Fri, Jul 05, 2013 at 09:32:05PM +0100, Filipe David Borba Manana wrote: If we're looking for a metadata item in the tree and the search fails with return value of 1, and the slot doesn't point to the first item in

[PATCH] Btrfs: optimize btrfs_lookup_extent_info()

2013-07-05 Thread Filipe David Borba Manana
If we're looking for a metadata item in the tree and the search fails with return value of 1, and the slot doesn't point to the first item in the leaf, check if the previous item in the leaf corresponds to an extent item for the same object id - if it does, then don't do another tree search to get