summaryrefslogtreecommitdiff
path: root/fs/lockd
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2014-07-17 01:04:46 +0400
committerJohn Stultz <john.stultz@linaro.org>2014-07-24 02:01:44 +0400
commit5eaaed4fe23247f0784edc2973f04134f8180251 (patch)
treefe0922873243243ca8c1a3e5412396fbb1f8a546 /fs/lockd
parent14a7004671246d1b799f545335995a9897de1268 (diff)
downloadlinux-5eaaed4fe23247f0784edc2973f04134f8180251.tar.xz
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: Thomas Gleixner <tglx@linutronix.de> Acked-by: Trond Myklebust <trond.myklebust@primarydata.com> Cc: "J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/mon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 1812f026960c..daa8e7514eae 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -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);
}