Re: [PATCH] Btrfs-progs: remove incorrect slot decrement

2013-07-05 Thread Josef Bacik
On Fri, Jul 05, 2013 at 02:35:07PM +0100, Filipe David Borba Manana wrote: > In btrfs_set_block_flags() we want to check if the slot > in the leaf points to the first item in the leaf - if it > doesn't check if the previous item in the leaf is an extent > item. By removing this extra slot decrement

[PATCH] Btrfs-progs: remove incorrect slot decrement

2013-07-05 Thread Filipe David Borba Manana
In btrfs_set_block_flags() we want to check if the slot in the leaf points to the first item in the leaf - if it doesn't check if the previous item in the leaf is an extent item. By removing this extra slot decrement we are indeed checking the item right before the slot, and not the second item bef