projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14a7004
)
fs: lockd: Use ktime_get_ns()
author
Thomas Gleixner
<
[email protected]
>
Wed, 16 Jul 2014 21:04:46 +0000
(21:04 +0000)
committer
John Stultz
<
[email protected]
>
Wed, 23 Jul 2014 22:01:44 +0000
(15:01 -0700)
Replace the ever recurring:
ts = ktime_get_ts();
ns = timespec_to_ns(&ts);
with
ns = ktime_get_ns();
Signed-off-by: Thomas Gleixner <
[email protected]
>
Acked-by: Trond Myklebust <
[email protected]
>
Cc: "J. Bruce Fields" <
[email protected]
>
Signed-off-by: John Stultz <
[email protected]
>
fs/lockd/mon.c
patch
|
blob
|
history
diff --git
a/fs/lockd/mon.c
b/fs/lockd/mon.c
index 1812f026960c4229dd4c3d198b129f9554eb6fc4..daa8e7514eae7b4d23e485bd94b46ea7f8b8e35d 100644
(file)
--- 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);
}