Read the whole thread, 76 messages PreviousNext Re: don't use ->bd_inode to access the block device size FromWol <hidden> Date2021-10-14 17:04:49 Also indm-devel, linux-bcache, linux-block, linux-ext4, linux-fsdevel, linux-nfs, linux-nvme, linux-raid, linux-scsi, ntfs3, target-develReply toKees Cook, 2021-10-14 On 14/10/2021 16:14, Kees Cook wrote:quotedI 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
Keyboard shortcuts hback out one level jnext message in thread / next series-diff position kprevious message in thread / previous series-diff position ldrill in Escclose help / fold thread tree ?toggle this help