block: move bdput() to the callers of __blkdev_get
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Nov 2020 08:22:18 +0000 (09:22 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Dec 2020 21:53:39 +0000 (14:53 -0700)
commit63d9932caecee8b0a295c608d083280b45885d10
tree2e64ec02a9348b8456278d3c094cdfb88b6a4132
parent5b56b6ed574b583b07da9d824c1eca6d67c1074e
block: move bdput() to the callers of __blkdev_get

This will allow for a more symmetric calling convention going forward.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c