[Drbd-dev] don't use ->bd_inode to access the block device size

Wol antlists at youngman.org.uk
Thu Oct 14 17:35:49 CEST 2021

On 14/10/2021 16:14, Kees Cook wrote:
>> I don't really mind bdev_size since it's analogous to i_size, but
>> bdev_nr_bytes seems good to me.

> I much prefer bdev_nr_bytes(), as "size" has no units.

Does it mean size IN bytes, or size OF A byte? :-)


More information about the drbd-dev mailing list