commit | cda00eba022d6a0a60740989ac79fc6a258b2d7a | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Oct 18 12:11:12 2021 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 18 14:43:22 2021 -0600 |
tree | 37834a23f736886c9e79a94c634cfd3928e432c9 | |
parent | 589aa7bc40c4f823dd6094cef51f8cff60e26e95 [diff] |
btrfs: use bdev_nr_bytes instead of open coding it 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: Anand Jain <anand.jain@oracle.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Acked-by: David Sterba <dsterba@suse.com> Link: https://lore.kernel.org/r/20211018101130.1838532-13-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>