Re: [PATCH] btrfs: Move loop termination condition in while()

2017-11-01 Thread David Sterba
On Wed, Nov 01, 2017 at 12:42:18PM +0200, Nikolay Borisov wrote: > > > On 1.11.2017 11:46, Roman Mamedov wrote: > > On Wed, 1 Nov 2017 11:32:18 +0200 > > Nikolay Borisov wrote: > > > >> Fallocating a file in btrfs goes through several stages. The one before > >> actually > >> inserting the f

Re: [PATCH] btrfs: Move loop termination condition in while()

2017-11-01 Thread Nikolay Borisov
On 1.11.2017 11:46, Roman Mamedov wrote: > On Wed, 1 Nov 2017 11:32:18 +0200 > Nikolay Borisov wrote: > >> Fallocating a file in btrfs goes through several stages. The one before >> actually >> inserting the fallocated extents is to create a qgroup reservation, covering >> the desired range.

Re: [PATCH] btrfs: Move loop termination condition in while()

2017-11-01 Thread Roman Mamedov
On Wed, 1 Nov 2017 11:32:18 +0200 Nikolay Borisov wrote: > Fallocating a file in btrfs goes through several stages. The one before > actually > inserting the fallocated extents is to create a qgroup reservation, covering > the desired range. To this end there is a loop in btrfs_fallocate which