diff options
author | Ming Lei <tom.leiming@gmail.com> | 2014-05-10 19:01:51 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-10 23:44:00 +0200 |
commit | 1f236ab22ce3bc5d4f975aa116966c0ea7ec2013 (patch) | |
tree | 7734945711f9f8013269ccab669083a0438b1ef5 /block | |
parent | blk-mq: bitmap tag: select random tag betweet 0 and (depth - 1) (diff) | |
download | linux-1f236ab22ce3bc5d4f975aa116966c0ea7ec2013.tar.xz linux-1f236ab22ce3bc5d4f975aa116966c0ea7ec2013.zip |
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')
-rw-r--r-- | block/blk-mq-tag.c | 4 |
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: 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) { @@ -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; |