# Re: don't use -\>bd\_inode to access the block device size

- From: Wol \<hidden\>
- Date: 2021-10-14 17:04:49 
- List: linux-btrfs
- Page: https://ratatoskr.run/linux-btrfs/2021/10/215974
- Thread: https://ratatoskr.run/linux-block/2021/10/215820/t/2.md

```text
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? :-)

Cheers,
Wol
```
