lkml.org 
[lkml]   [2020]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/7] floppy: use block_size
Date
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()


\
 
 \ /
  Last update: 2020-06-26 17:49    [W:2.160 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site