Skip to content

Commit

Permalink
blk-mq: bitmap tag: cleanup blk_mq_init_tags
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ming1 authored and axboe committed May 10, 2014
1 parent 9d3d21a commit 1f236ab
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions block/blk-mq-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,6 @@ static struct blk_mq_tags *blk_mq_init_bitmap_tags(struct blk_mq_tags *tags,
struct blk_mq_tags *blk_mq_init_tags(unsigned int total_tags,
unsigned int reserved_tags, int node)
{
unsigned int nr_tags, nr_cache;
struct blk_mq_tags *tags;

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

nr_tags = total_tags - reserved_tags;
nr_cache = nr_tags / num_online_cpus();

tags->nr_tags = total_tags;
tags->nr_reserved_tags = reserved_tags;

Expand Down

0 comments on commit 1f236ab

Please sign in to comment.