aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-mq-tag.c
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2014-05-10 13:01:51 -0400
committerJens Axboe <axboe@fb.com>2014-05-10 17:44:00 -0400
commit1f236ab22ce3bc5d4f975aa116966c0ea7ec2013 (patch)
tree7734945711f9f8013269ccab669083a0438b1ef5 /block/blk-mq-tag.c
parent9d3d21aeb4f194cd7ac205abe68b14b47ae736a8 (diff)
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 <tom.leiming@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-tag.c')
-rw-r--r--block/blk-mq-tag.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index f196e60178f4..8d526a3e02f6 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -417,7 +417,6 @@ enomem:
417struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags, 417struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,
418 unsigned int reserved_tags, int node) 418 unsigned int reserved_tags, int node)
419{ 419{
420 unsigned int nr_tags, nr_cache;
421 struct blk_mq_tags *tags; 420 struct blk_mq_tags *tags;
422 421
423 if (total_tags > BLK_MQ_TAG_MAX) { 422 if (total_tags > BLK_MQ_TAG_MAX) {
@@ -429,9 +428,6 @@ struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,
429 if (!tags) 428 if (!tags)
430 return NULL; 429 return NULL;
431 430
432 nr_tags = total_tags - reserved_tags;
433 nr_cache = nr_tags / num_online_cpus();
434
435 tags->nr_tags = total_tags; 431 tags->nr_tags = total_tags;
436 tags->nr_reserved_tags = reserved_tags; 432 tags->nr_reserved_tags = reserved_tags;
437 433