Re: [PATCH 1/7] floppy: use block_size

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

 



On 26/06/2020 10:03, Christoph Hellwig wrote:
> -	size = bdev->bd_block_size;
> -	if (!size)
> -		size = 1024;
> -

Why is this correct? block_size() only returns 'bdev->bd_block_size' but I cannot 
see where it's made sure bd_block_size is not 0. At least no calls to set_blocksize()





[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux