projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2452cc8
)
bcache: Correct printing of btree_gc_max_duration_ms
author
Surbhi Palande
<sap@daterainc.com>
Thu, 17 Apr 2014 19:07:04 +0000
(12:07 -0700)
committer
Kent Overstreet
<kmo@daterainc.com>
Mon, 4 Aug 2014 22:23:04 +0000
(15:23 -0700)
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>
drivers/md/bcache/util.h
patch
|
blob
|
history
diff --git
a/drivers/md/bcache/util.h
b/drivers/md/bcache/util.h
index ac7d0d1f70d7be9ae818a51c6d77c461d770eb4b..98df7572b5f7f82b9091965e199a301159374bee 100644
(file)
--- a/
drivers/md/bcache/util.h
+++ b/
drivers/md/bcache/util.h
@@
-416,8
+416,8
@@
do { \
average_frequency, frequency_units); \
__print_time_stat(stats, name, \
average_duration, duration_units); \
-
__print_time_stat(stats, name,
\
-
max_duration, duration_units);
\
+
sysfs_print(name ## _ ##max_duration ## _ ## duration_units,
\
+
div_u64((stats)->max_duration, NSEC_PER_ ## duration_units));
\
\
sysfs_print(name ## _last_ ## frequency_units, (stats)->last \
? div_s64(local_clock() - (stats)->last, \