commit | b86058f96cc86e415e51bd12cc3786d7cdbd8b47 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Oct 18 12:11:09 2021 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 18 14:43:22 2021 -0600 |
tree | b7899281b8d8d8f255f665ff2f7022906d9d98e2 | |
parent | 64f0f42671b48ec30a3203818e26346d5b4ea5fa [diff] |
fs: use bdev_nr_bytes instead of open coding it in blkdev_max_block Use the proper helper to read the block device size. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20211018101130.1838532-10-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>