don't use ->bd_inode to access the block device size

76 messages, 15 authors, 2021-10-14 · page 2 of 2 · open the first message on its own page

Re: don't use ->bd_inode to access the block device size

From: Wol <hidden>
Date: 2021-10-14 17:04:49

On 14/10/2021 16:14, Kees Cook wrote:
quoted
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? :-)

Cheers,
Wol

Previous page

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help