Skip to content

Commit 1f236ab

Browse files
ming1axboe
authored andcommitted
blk-mq: bitmap tag: cleanup blk_mq_init_tags
Both nr_cache and nr_tags arn't needed for bitmap tag anymore. Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 9d3d21a commit 1f236ab

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

block/blk-mq-tag.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ static struct blk_mq_tags *blk_mq_init_bitmap_tags(struct blk_mq_tags *tags,
417417
struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,
418418
unsigned int reserved_tags, int node)
419419
{
420-
unsigned int nr_tags, nr_cache;
421420
struct blk_mq_tags *tags;
422421

423422
if (total_tags > BLK_MQ_TAG_MAX) {
@@ -429,9 +428,6 @@ struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,
429428
if (!tags)
430429
return NULL;
431430

432-
nr_tags = total_tags - reserved_tags;
433-
nr_cache = nr_tags / num_online_cpus();
434-
435431
tags->nr_tags = total_tags;
436432
tags->nr_reserved_tags = reserved_tags;
437433

0 commit comments

Comments
 (0)