diff options
author | Martin Peschke <mpeschke@linux.vnet.ibm.com> | 2009-01-21 14:58:35 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-01-21 14:58:35 +0100 |
commit | 61165962f86cb2de0b163f6083bff5649f692e91 (patch) | |
tree | 74c95efd27078760d473a32bc3b411e5f9fe9376 | |
parent | b3ee499dd143aeaed311bf3bc6d14871168b6657 (diff) | |
download | blktrace-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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]); |