diff options
author | Surbhi Palande <sap@daterainc.com> | 2014-04-17 15:07:04 -0400 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2014-08-04 18:23:04 -0400 |
commit | 5b25abade29616d42d60f9bd5e6a5ad07f7314e3 (patch) | |
tree | c2ff3c01b4cd48709a3460a73459bd0cdc68302e | |
parent | 2452cc89063a2a6890368f185c4b6d7d8802179e (diff) |
bcache: Correct printing of btree_gc_max_duration_ms
time_stats::btree_gc_max_duration_mc is not bit shifted by 8
Fixes BUG #138
Change-Id: I44fc6e1d0579674016acc533f1a546b080e5371a
Signed-off-by: Surbhi Palande <sap@daterainc.com>
-rw-r--r-- | drivers/md/bcache/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h index ac7d0d1f70d7..98df7572b5f7 100644 --- a/drivers/md/bcache/util.h +++ b/drivers/md/bcache/util.h | |||
@@ -416,8 +416,8 @@ do { \ | |||
416 | average_frequency, frequency_units); \ | 416 | average_frequency, frequency_units); \ |
417 | __print_time_stat(stats, name, \ | 417 | __print_time_stat(stats, name, \ |
418 | average_duration, duration_units); \ | 418 | average_duration, duration_units); \ |
419 | __print_time_stat(stats, name, \ | 419 | sysfs_print(name ## _ ##max_duration ## _ ## duration_units, \ |
420 | max_duration, duration_units); \ | 420 | div_u64((stats)->max_duration, NSEC_PER_ ## duration_units));\ |
421 | \ | 421 | \ |
422 | sysfs_print(name ## _last_ ## frequency_units, (stats)->last \ | 422 | sysfs_print(name ## _last_ ## frequency_units, (stats)->last \ |
423 | ? div_s64(local_clock() - (stats)->last, \ | 423 | ? div_s64(local_clock() - (stats)->last, \ |