Thread (17 messages) 17 messages, 3 authors, 2020-07-01

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

From: Johannes Thumshirn <hidden>
Date: 2020-06-26 15:48:58
Also in: lkml

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()
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help