genhd: Add helper put_disk_and_module()
authorJan Kara <jack@suse.cz>
Mon, 26 Feb 2018 12:01:39 +0000 (13:01 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Feb 2018 16:48:42 +0000 (09:48 -0700)
commit9df6c29912315186fef1c79cc15b758ace84175b
treef750cc3053a805b3e2d7b0caac7acd281a64b94a
parent3079c22ea815775837a4f389ce2f7e1e7b202e09
genhd: Add helper put_disk_and_module()

Add a proper counterpart to get_disk_and_module() -
put_disk_and_module(). Currently it is opencoded in several places.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/genhd.c
fs/block_dev.c
include/linux/genhd.h