block: rename blk_mq_alloc_rq_maps
authorWeiping Zhang <zhangweiping@didiglobal.com>
Thu, 7 May 2020 13:04:42 +0000 (21:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:15:13 +0000 (16:15 -0600)
rename blk_mq_alloc_rq_maps to blk_mq_alloc_map_and_requests,
this function allocs both map and request, make function name align
with funtion.

Signed-off-by: Weiping Zhang <zhangweiping@didiglobal.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c

index 4c456a23a4bf251931a97144c9674d5e8c3bc14b..bc34d6b572b67d0d5cfe89bfafbe61dc1b9e67da 100644 (file)
@@ -3017,7 +3017,7 @@ out_unwind:
  * may reduce the depth asked for, if memory is tight. set->queue_depth
  * will be updated to reflect the allocated depth.
  */
-static int blk_mq_alloc_rq_maps(struct blk_mq_tag_set *set)
+static int blk_mq_alloc_map_and_requests(struct blk_mq_tag_set *set)
 {
        unsigned int depth;
        int err;
@@ -3177,7 +3177,7 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set)
        if (ret)
                goto out_free_mq_map;
 
-       ret = blk_mq_alloc_rq_maps(set);
+       ret = blk_mq_alloc_map_and_requests(set);
        if (ret)
                goto out_free_mq_map;