aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-02-06 06:52:17 -0500
committerIlya Dryomov <idryomov@gmail.com>2015-04-20 10:30:22 -0400
commit3563dbdd99603d4339467ddffafe3851aae2e398 (patch)
tree69f192383d59499c057640412882f3883890a733 /fs/ceph
parente1eba3ea02dbd2a4b6be1a5708af31dc9b9aaaa6 (diff)
ceph: use msecs_to_jiffies for time conversion
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 0a1a9e452148..0122491d947c 100644
--- 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,
3140 di->lease_renew_from && 3140 di->lease_renew_from &&
3141 di->lease_renew_after == 0) { 3141 di->lease_renew_after == 0) {
3142 unsigned long duration = 3142 unsigned long duration =
3143 le32_to_cpu(h->duration_ms) * HZ / 1000; 3143 msecs_to_jiffies(le32_to_cpu(h->duration_ms));
3144 3144
3145 di->lease_seq = seq; 3145 di->lease_seq = seq;
3146 dentry->d_time = di->lease_renew_from + duration; 3146 dentry->d_time = di->lease_renew_from + duration;