diff options
author | Weiping Zhang <zhangweiping@didiglobal.com> | 2020-05-07 21:04:42 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-09 16:15:13 -0600 |
commit | 79fab5287922900725df1394034de2e04b058907 (patch) | |
tree | 5e619b05e2b3e888cc6c90bb7196507513f00693 /block | |
parent | 03b63b029dcb394c00736c4ce1a8d07e13e458da (diff) | |
download | linux-79fab5287922900725df1394034de2e04b058907.tar.bz2 |
block: rename blk_mq_alloc_rq_maps
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 4c456a23a4bf..bc34d6b572b6 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -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; |