diff options
author | Christoph Hellwig <hch@lst.de> | 2022-06-19 08:05:52 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-28 06:33:15 -0600 |
commit | 8b9ab62662048a3274361c7e5f64037c2c133e2c (patch) | |
tree | bda02f692f6d66eb1aad21b60283654bd01d6289 /drivers/md/dm.c | |
parent | 6f8191fdf41d3a53cc1d63fe2234e812c55a0092 (diff) | |
download | linux-stable-8b9ab62662048a3274361c7e5f64037c2c133e2c.tar.gz linux-stable-8b9ab62662048a3274361c7e5f64037c2c133e2c.tar.bz2 linux-stable-8b9ab62662048a3274361c7e5f64037c2c133e2c.zip |
block: remove blk_cleanup_disk
blk_cleanup_disk is nothing but a trivial wrapper for put_disk now,
so remove it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20220619060552.1850436-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 4c04a980fcd9..8872f9c63688 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1894,7 +1894,7 @@ static void cleanup_mapped_device(struct mapped_device *md) del_gendisk(md->disk); } dm_queue_destroy_crypto_profile(md->queue); - blk_cleanup_disk(md->disk); + put_disk(md->disk); } if (md->pending_io) { |