Re: [PATCH] Btrfs: try harder to migrate items to left sibling before splitting a leaf

2017-02-22 Thread Liu Bo
On Wed, Feb 22, 2017 at 02:05:05PM +, Filipe Manana wrote: > On Wed, Feb 22, 2017 at 12:07 AM, Liu Bo wrote: > > On Sun, Feb 19, 2017 at 08:56:39PM +, fdman...@kernel.org wrote: > >> From: Filipe Manana > >> > >> Before attempting to split a leaf

Re: [PATCH] Btrfs: try harder to migrate items to left sibling before splitting a leaf

2017-02-22 Thread Filipe Manana
On Wed, Feb 22, 2017 at 12:07 AM, Liu Bo wrote: > On Sun, Feb 19, 2017 at 08:56:39PM +, fdman...@kernel.org wrote: >> From: Filipe Manana >> >> Before attempting to split a leaf we try to migrate items from the leaf to >> its right and left siblings.

Re: [PATCH] Btrfs: try harder to migrate items to left sibling before splitting a leaf

2017-02-21 Thread Liu Bo
On Sun, Feb 19, 2017 at 08:56:39PM +, fdman...@kernel.org wrote: > From: Filipe Manana > > Before attempting to split a leaf we try to migrate items from the leaf to > its right and left siblings. We start by trying to move items into the > rigth sibling and, if the new

[PATCH] Btrfs: try harder to migrate items to left sibling before splitting a leaf

2017-02-20 Thread fdmanana
From: Filipe Manana Before attempting to split a leaf we try to migrate items from the leaf to its right and left siblings. We start by trying to move items into the rigth sibling and, if the new item is meant to be inserted at the end of our leaf, we try to free from our leaf