Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3563dbdd authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Ilya Dryomov
Browse files

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: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent e1eba3ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;