diff options
author | Christoph Hellwig <hch@lst.de> | 2020-11-27 16:21:42 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-12-01 22:53:39 +0100 |
commit | b0519b542303bc167d22bf11dadd3f18d37dbfe2 (patch) | |
tree | d372c77e5610a538704ea7de8950515951cc01f8 /drivers/md/dm-core.h | |
parent | dm: simplify flush_bio initialization in __send_empty_flush (diff) | |
download | linux-b0519b542303bc167d22bf11dadd3f18d37dbfe2.tar.xz linux-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.h | 2 |
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 */ |