Re: [PATCH] Btrfs: bulk delete checksum items in the same leaf

2017-01-31 Thread Liu Bo
On Sat, Jan 28, 2017 at 06:06:32AM +, fdman...@kernel.org wrote: > From: Filipe Manana > > Very often we have the checksums for an extent spread in multiple items > in the checksums tree, and currently the algorithm to delete them starts > by looking for them one by one

Re: [PATCH] Btrfs: bulk delete checksum items in the same leaf

2017-01-31 Thread Filipe Manana
On Tue, Jan 31, 2017 at 1:02 AM, Omar Sandoval wrote: > On Sat, Jan 28, 2017 at 06:06:32AM +, fdman...@kernel.org wrote: >> From: Filipe Manana >> >> Very often we have the checksums for an extent spread in multiple items >> in the checksums tree, and

Re: [PATCH] Btrfs: bulk delete checksum items in the same leaf

2017-01-30 Thread Omar Sandoval
On Mon, Jan 30, 2017 at 05:02:45PM -0800, Omar Sandoval wrote: > On Sat, Jan 28, 2017 at 06:06:32AM +, fdman...@kernel.org wrote: > > From: Filipe Manana > > > > Very often we have the checksums for an extent spread in multiple items > > in the checksums tree, and

Re: [PATCH] Btrfs: bulk delete checksum items in the same leaf

2017-01-30 Thread Omar Sandoval
On Sat, Jan 28, 2017 at 06:06:32AM +, fdman...@kernel.org wrote: > From: Filipe Manana > > Very often we have the checksums for an extent spread in multiple items > in the checksums tree, and currently the algorithm to delete them starts > by looking for them one by one

[PATCH] Btrfs: bulk delete checksum items in the same leaf

2017-01-30 Thread fdmanana
From: Filipe Manana Very often we have the checksums for an extent spread in multiple items in the checksums tree, and currently the algorithm to delete them starts by looking for them one by one and then deleting them one by one, which is not optimal since each deletion