diff options
author | Jan Kara <jack@suse.cz> | 2018-02-26 13:01:38 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-02-26 09:48:42 -0700 |
commit | 3079c22ea815775837a4f389ce2f7e1e7b202e09 (patch) | |
tree | 2210be59a22f091fcc79062255e64aa419c2d70c /drivers/block/loop.c | |
parent | d52987b524ccd2e2165ddad9bcc087a6c3f5332c (diff) | |
download | lwn-3079c22ea815775837a4f389ce2f7e1e7b202e09.tar.gz lwn-3079c22ea815775837a4f389ce2f7e1e7b202e09.zip |
genhd: Rename get_disk() to get_disk_and_module()
Rename get_disk() to get_disk_and_module() to make sure what the
function does. It's not a great name but at least it is now clear that
put_disk() is not it's counterpart.
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index d5fe720cf149..87855b5123a6 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1922,7 +1922,7 @@ static struct kobject *loop_probe(dev_t dev, int *part, void *data) if (err < 0) kobj = NULL; else - kobj = get_disk(lo->lo_disk); + kobj = get_disk_and_module(lo->lo_disk); mutex_unlock(&loop_index_mutex); *part = 0; |