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

Commit 5eaaed4f authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz
Browse files

fs: lockd: Use ktime_get_ns()



Replace the ever recurring:
        ts = ktime_get_ts();
        ns = timespec_to_ns(&ts);
with
        ns = ktime_get_ns();

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 14a70046
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -306,11 +306,9 @@ static struct nsm_handle *nsm_lookup_priv(const struct nsm_private *priv)
static void nsm_init_private(struct nsm_handle *nsm)
{
	u64 *p = (u64 *)&nsm->sm_priv.data;
	struct timespec ts;
	s64 ns;

	ktime_get_ts(&ts);
	ns = timespec_to_ns(&ts);
	ns = ktime_get_ns();
	put_unaligned(ns, p);
	put_unaligned((unsigned long)nsm, p + 1);
}