aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Peschke <mpeschke@linux.vnet.ibm.com>2009-01-21 14:58:35 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-01-21 14:58:35 +0100
commit61165962f86cb2de0b163f6083bff5649f692e91 (patch)
tree74c95efd27078760d473a32bc3b411e5f9fe9376
parentb3ee499dd143aeaed311bf3bc6d14871168b6657 (diff)
downloadblktrace-61165962f86cb2de0b163f6083bff5649f692e91.tar.gz
A couple of min-counters weren't initialised correctly (thrput_r,
thrput_w). We have got a perfectly working init function for this purpose. Removing partially duplicated code. Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com> Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--blkiomon.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/blkiomon.c b/blkiomon.c
index 2066006..c3c1b11 100644
--- a/blkiomon.c
+++ b/blkiomon.c
@@ -168,7 +168,7 @@ static struct dstat *blkiomon_alloc_dstat(void)
return NULL;
}
- memset(dstat, 0, sizeof(*dstat));
+ blkiomon_stat_init(&dstat->msg.stat);
return dstat;
}
@@ -211,10 +211,6 @@ static struct dstat *blkiomon_get_dstat(__u32 device)
goto out;
dstat->msg.stat.device = device;
- dstat->msg.stat.size_r.min = -1ULL;
- dstat->msg.stat.size_w.min = -1ULL;
- dstat->msg.stat.d2c_r.min = -1ULL;
- dstat->msg.stat.d2c_w.min = -1ULL;
rb_link_node(&dstat->node, search.parent, search.node_ptr);
rb_insert_color(&dstat->node, &dstat_tree[dstat_curr]);