lkml.org 
[lkml]   [2014]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] blk-mq: bitmap tag: cleanup blk_mq_init_tags
Date
Both nr_cache and nr_tags arn't needed for bitmap tag anymore.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
block/blk-mq-tag.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index 77d2b18..6532aea 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -394,7 +394,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) {
@@ -406,9 +405,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;

--
1.7.9.5


\
 
 \ /
  Last update: 2014-05-10 19:41    [W:0.061 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site