Re: [PATCH] btrfs: Refactor main loop in extent_readpages

2018-12-12 Thread Nikolay Borisov
On 12.12.18 г. 16:40 ч., David Sterba wrote: > On Thu, Nov 29, 2018 at 06:41:31PM +0200, Nikolay Borisov wrote: >> extent_readpages processes all pages in the readlist in batches of 16, >> this is implemented by a single for loop but thanks to an if condition >> the loop does 2 things based on w

Re: [PATCH] btrfs: Refactor main loop in extent_readpages

2018-12-12 Thread David Sterba
On Thu, Nov 29, 2018 at 06:41:31PM +0200, Nikolay Borisov wrote: > extent_readpages processes all pages in the readlist in batches of 16, > this is implemented by a single for loop but thanks to an if condition > the loop does 2 things based on whether we've filled the batch or not. > Additionally

[PATCH] btrfs: Refactor main loop in extent_readpages

2018-11-29 Thread Nikolay Borisov
extent_readpages processes all pages in the readlist in batches of 16, this is implemented by a single for loop but thanks to an if condition the loop does 2 things based on whether we've filled the batch or not. Additionally due to the structure of the code there is an additional check which deals