diff options
author | Jan Kara <jack@suse.cz> | 2018-02-26 15:01:39 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-26 19:48:42 +0300 |
commit | 9df6c29912315186fef1c79cc15b758ace84175b (patch) | |
tree | f750cc3053a805b3e2d7b0caac7acd281a64b94a /include/linux/genhd.h | |
parent | 3079c22ea815775837a4f389ce2f7e1e7b202e09 (diff) | |
download | linux-9df6c29912315186fef1c79cc15b758ace84175b.tar.xz |
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>
Diffstat (limited to 'include/linux/genhd.h')
-rw-r--r-- | include/linux/genhd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 8e11b9321e55..7f5906fe1b70 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -602,6 +602,7 @@ extern void printk_all_partitions(void); extern struct gendisk *__alloc_disk_node(int minors, int node_id); extern struct kobject *get_disk_and_module(struct gendisk *disk); extern void put_disk(struct gendisk *disk); +extern void put_disk_and_module(struct gendisk *disk); extern void blk_register_region(dev_t devt, unsigned long range, struct module *module, struct kobject *(*probe)(dev_t, int *, void *), |