ceph: use ktime_to_timespec64() rather than jiffies_to_timespec64()
authorVenky Shankar <vshankar@redhat.com>
Tue, 8 Mar 2022 12:42:16 +0000 (07:42 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 21 Mar 2022 12:35:16 +0000 (13:35 +0100)
commit8d728c769fd8e5aaaea36288741a4e3493111816
tree5dbc42cf67945ad2935dde1e35bb49411ef7cb4f
parent1ad3bb28d336978e451980ca6c72be494b8fe2f1
ceph: use ktime_to_timespec64() rather than jiffies_to_timespec64()

Latencies are of type ktime_t, coverting from jiffies is incorrect.
Also, switch to "struct ceph_timespec" for r/w/m latencies.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/metric.c
fs/ceph/metric.h