Skip to content

Commit 6452112

Browse files
Surbhi PalandeJiri Slaby
authored andcommitted
bcache: Correct printing of btree_gc_max_duration_ms
commit 5b25aba upstream. time_stats::btree_gc_max_duration_mc is not bit shifted by 8 Fixes BUG #138 Change-Id: I44fc6e1d0579674016acc533f1a546b080e5371a Signed-off-by: Surbhi Palande <[email protected]> Signed-off-by: Jiri Slaby <[email protected]>
1 parent 56a60dd commit 6452112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/bcache/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,8 @@ do { \
417417
average_frequency, frequency_units); \
418418
__print_time_stat(stats, name, \
419419
average_duration, duration_units); \
420-
__print_time_stat(stats, name, \
421-
max_duration, duration_units); \
420+
sysfs_print(name ## _ ##max_duration ## _ ## duration_units, \
421+
div_u64((stats)->max_duration, NSEC_PER_ ## duration_units));\
422422
\
423423
sysfs_print(name ## _last_ ## frequency_units, (stats)->last \
424424
? div_s64(local_clock() - (stats)->last, \

0 commit comments

Comments
 (0)