Re: [PATCH 2/2] btrfs: optimize free space tree bitmap conversion

2018-04-18 Thread Howard McLauchlan
On 04/18/2018 03:26 PM, David Sterba wrote: > On Wed, Apr 18, 2018 at 02:30:59PM -0700, Howard McLauchlan wrote: >> Presently, convert_free_space_to_extents() does a linear scan of the >> bitmap. We can speed this up with find_next_{bit,zero_bit}_le(). >> >> This patch replaces the linear scan with

Re: [PATCH 2/2] btrfs: optimize free space tree bitmap conversion

2018-04-18 Thread David Sterba
On Wed, Apr 18, 2018 at 02:30:59PM -0700, Howard McLauchlan wrote: > Presently, convert_free_space_to_extents() does a linear scan of the > bitmap. We can speed this up with find_next_{bit,zero_bit}_le(). > > This patch replaces the linear scan with find_next_{bit,zero_bit}_le(). > Testing shows a