Re: [PATCH] zbd: fixup ->zone_size_log2 if zone size is not power of 2

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

 



On 4/6/20 12:56 PM, Alexey Dobriyan wrote:
> Code like this doesn't work if log2 is 0xffffffff.
> 
> 	if (f->zbd_info->zone_size_log2 > 0)
>                 zone_idx = offset >> f->zbd_info->zone_size_log2;
>         else
>                 zone_idx = offset / f->zbd_info->zone_size;
> 
> Other than that everything else works!

Applied, thanks.

-- 
Jens Axboe




[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