]> www.infradead.org Git - users/hch/block.git/commit
dm: use bdev_nr_sectors and bdev_nr_bytes instead of open coding them
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Oct 2021 11:07:46 +0000 (13:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 18 Oct 2021 04:53:11 +0000 (06:53 +0200)
commit54538d72dcadc25381875bae40638c09aede5b97
tree3965214047ffb76ad38060400cf1a9ea5a0bbad6
parentb177b95039b90559faf727498e1b7c40cf7ac06f
dm: use bdev_nr_sectors and bdev_nr_bytes instead of open coding them

Use the proper helpers to read the block device size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Acked-by: Mike Snitzer <snitzer@redhat.com>
22 files changed:
drivers/md/dm-bufio.c
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-target.c
drivers/md/dm-clone-target.c
drivers/md/dm-dust.c
drivers/md/dm-ebs-target.c
drivers/md/dm-era-target.c
drivers/md/dm-exception-store.h
drivers/md/dm-flakey.c
drivers/md/dm-integrity.c
drivers/md/dm-linear.c
drivers/md/dm-log-writes.c
drivers/md/dm-log.c
drivers/md/dm-mpath.c
drivers/md/dm-raid.c
drivers/md/dm-switch.c
drivers/md/dm-table.c
drivers/md/dm-thin-metadata.c
drivers/md/dm-thin.c
drivers/md/dm-verity-target.c
drivers/md/dm-writecache.c
drivers/md/dm-zoned-target.c