Re: [PATCH v3 02/38] zbd: use zbd_zone_nr() more actively in the code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote:
> The function zbd_zone_nr() is always called with the first argument
> being f->zbd_info. If "f" is made the first argument instead, calls
> of this function become more compact end easier to read.
> 
> Besides this change, convert several places in the code where the same
> zone number calculation is open coded to zbd_zone_nr() calls.
> This is a refactoring patch, no change in functionality.
> 
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx>

Looks good to me.

Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>

-- 
Best Regards,
Shin'ichiro Kawasaki



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux