commit | 6436bd90f76e75d2c5786a50203b05a9b7f7100d | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Oct 18 12:11:02 2021 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 18 14:43:22 2021 -0600 |
tree | 42be0dddf22b8518f4ca2cd0c6d5d9995844e750 | |
parent | 99457db8b40c66941072a383a5ab4e36bc53fd3d [diff] |
block: add a bdev_nr_bytes helper Add a helper to query the size of a block device in bytes. This will be used to remove open coded access to ->bd_inode. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20211018101130.1838532-3-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>