projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d3d21a
)
blk-mq: bitmap tag: cleanup blk_mq_init_tags
author
Ming Lei
<
[email protected]
>
Sat, 10 May 2014 17:01:51 +0000
(
01:01
+0800)
committer
Jens Axboe
<
[email protected]
>
Sat, 10 May 2014 21:44:00 +0000
(15:44 -0600)
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]
>
block/blk-mq-tag.c
patch
|
blob
|
history
diff --git
a/block/blk-mq-tag.c
b/block/blk-mq-tag.c
index f196e60178f46bf07649eef5ed1dbec562264165..8d526a3e02f6b951e9bf6ee729ff5225579db28a 100644
(file)
--- 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;