Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-12-16 Thread Liu Bo
On Fri, Dec 02, 2016 at 12:25:19PM +, Filipe Manana wrote: > On Fri, Dec 2, 2016 at 1:41 AM, Liu Bo wrote: > > On Thu, Nov 24, 2016 at 11:13:37AM +, Filipe Manana wrote: > >> On Wed, Nov 23, 2016 at 9:22 PM, Liu Bo wrote: ... > >> > >> The analysis is correct Bo. > >> Originally to fix ra

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-12-02 Thread Filipe Manana
On Fri, Dec 2, 2016 at 1:41 AM, Liu Bo wrote: > On Thu, Nov 24, 2016 at 11:13:37AM +, Filipe Manana wrote: >> On Wed, Nov 23, 2016 at 9:22 PM, Liu Bo wrote: >> > Hi, >> > >> > On Wed, Nov 23, 2016 at 06:21:35PM +0100, Stefan Priebe - Profihost AG >> > wrote: >> >> Hi, >> >> >> >> sorry last

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-12-01 Thread Liu Bo
On Thu, Nov 24, 2016 at 11:13:37AM +, Filipe Manana wrote: > On Wed, Nov 23, 2016 at 9:22 PM, Liu Bo wrote: > > Hi, > > > > On Wed, Nov 23, 2016 at 06:21:35PM +0100, Stefan Priebe - Profihost AG > > wrote: > >> Hi, > >> > >> sorry last mail was from the wrong box. > >> > >> Am 04.11.2016 um 2

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-11-24 Thread Filipe Manana
On Wed, Nov 23, 2016 at 9:22 PM, Liu Bo wrote: > Hi, > > On Wed, Nov 23, 2016 at 06:21:35PM +0100, Stefan Priebe - Profihost AG wrote: >> Hi, >> >> sorry last mail was from the wrong box. >> >> Am 04.11.2016 um 20:20 schrieb Liu Bo: >> > If we have >> > >> > |0--hole--4095||4096--preallocate--1228

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-11-23 Thread Liu Bo
Hi, On Wed, Nov 23, 2016 at 06:21:35PM +0100, Stefan Priebe - Profihost AG wrote: > Hi, > > sorry last mail was from the wrong box. > > Am 04.11.2016 um 20:20 schrieb Liu Bo: > > If we have > > > > |0--hole--4095||4096--preallocate--12287| > > > > instead of using preallocated space, a 8K dire

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-11-23 Thread Stefan Priebe - Profihost AG
Am 23.11.2016 um 19:23 schrieb Holger Hoffstätte: > On 11/23/16 18:21, Stefan Priebe - Profihost AG wrote: >> Am 04.11.2016 um 20:20 schrieb Liu Bo: >>> If we have >>> >>> |0--hole--4095||4096--preallocate--12287| >>> >>> instead of using preallocated space, a 8K direct write will just >>> create

Re: resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-11-23 Thread Holger Hoffstätte
On 11/23/16 18:21, Stefan Priebe - Profihost AG wrote: > Am 04.11.2016 um 20:20 schrieb Liu Bo: >> If we have >> >> |0--hole--4095||4096--preallocate--12287| >> >> instead of using preallocated space, a 8K direct write will just >> create a new 8K extent and it'll end up with >> >> |0--new extent--

resend: Re: Btrfs: adjust len of writes if following a preallocated extent

2016-11-23 Thread Stefan Priebe - Profihost AG
Hi, sorry last mail was from the wrong box. Am 04.11.2016 um 20:20 schrieb Liu Bo: > If we have > > |0--hole--4095||4096--preallocate--12287| > > instead of using preallocated space, a 8K direct write will just > create a new 8K extent and it'll end up with > > |0--new extent--8191||8192--prea