dm: remove the block_device reference in struct mapped_device
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Nov 2020 15:21:42 +0000 (16:21 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commitb0519b542303bc167d22bf11dadd3f18d37dbfe2
treed372c77e5610a538704ea7de8950515951cc01f8
parent47d951023a242bb159534573a4a76fef9a31dc9b
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>
drivers/md/dm-core.h
drivers/md/dm.c