projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1eba3e
)
ceph: use msecs_to_jiffies for time conversion
author
Nicholas Mc Guire
<hofrat@osadl.org>
Fri, 6 Feb 2015 11:52:17 +0000
(06:52 -0500)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 20 Apr 2015 14:30:22 +0000
(17:30 +0300)
This is only an API consolidation and should make things more readable
it replaces var * HZ / 1000 by msecs_to_jiffies(var).
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/mds_client.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/mds_client.c
b/fs/ceph/mds_client.c
index 0a1a9e452148a84f4e1fdf733f7f990598596361..0122491d947cdc8f4324ec3ec70be7bc88ffce61 100644
(file)
--- a/
fs/ceph/mds_client.c
+++ b/
fs/ceph/mds_client.c
@@
-3140,7
+3140,7
@@
static void handle_lease(struct ceph_mds_client *mdsc,
di->lease_renew_from &&
di->lease_renew_after == 0) {
unsigned long duration =
-
le32_to_cpu(h->duration_ms) * HZ / 1000
;
+
msecs_to_jiffies(le32_to_cpu(h->duration_ms))
;
di->lease_seq = seq;
dentry->d_time = di->lease_renew_from + duration;