[lustre-devel] [PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection
    Dan Carpenter 
    dan.carpenter at oracle.com
       
    Mon Dec 14 03:00:03 PST 2015
    
    
  
On Sun, Dec 13, 2015 at 02:57:38PM +0100, SF Markus Elfring wrote:
> From: Markus Elfring <elfring at users.sourceforge.net>
> Date: Sun, 13 Dec 2015 12:21:17 +0100
> 
> A few checks would be performed by the mgc_process_recover_log() function
> even if it is known already that the passed variable "pages" contained
> a null pointer.
> 
> * Let us return directly if a call of the kcalloc() function failed.
> 
> * Move assignments for the variables "eof" and "req" behind
>   this memory allocation.
Why?  Then in the next patch it moves again.  It's like cup shuffle to
read these patches sometimes.
regards,
dan carpenter
    
    
More information about the lustre-devel
mailing list