summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-11-27 16:21:42 +0100
committerJens Axboe <axboe@kernel.dk>2020-12-01 14:53:39 -0700
commitb0519b542303bc167d22bf11dadd3f18d37dbfe2 (patch)
treed372c77e5610a538704ea7de8950515951cc01f8 /drivers/md/dm-core.h
parent47d951023a242bb159534573a4a76fef9a31dc9b (diff)
downloadlinux-stable-b0519b542303bc167d22bf11dadd3f18d37dbfe2.tar.gz
linux-stable-b0519b542303bc167d22bf11dadd3f18d37dbfe2.tar.bz2
linux-stable-b0519b542303bc167d22bf11dadd3f18d37dbfe2.zip
dm: remove the block_device reference in struct mapped_device
Get rid of the long-lasting struct block_device reference in struct mapped_device. The only remaining user is the freeze code, where we can trivially look up the block device at freeze time and release the reference at thaw time. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Acked-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-core.h')
-rw-r--r--drivers/md/dm-core.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h
index aace147effca..086d293c2b03 100644
--- a/drivers/md/dm-core.h
+++ b/drivers/md/dm-core.h
@@ -102,8 +102,6 @@ struct mapped_device {
/* kobject and completion */
struct dm_kobject_holder kobj_holder;
- struct block_device *bdev;
-
struct dm_stats stats;
/* for blk-mq request-based DM support */