lkml.org 
[lkml]   [2014]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [patch 38/55] fs: lockd: Use ktime_get_ns()
From
On Fri, Jul 11, 2014 at 9:44 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> 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>
> Cc: "J. Bruce Fields" <bfields@fieldses.org>
> Cc: Trond Myklebust <trond.myklebust@primarydata.com>
> ---
> fs/lockd/mon.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> Index: tip/fs/lockd/mon.c
> ===================================================================
> --- tip.orig/fs/lockd/mon.c
> +++ tip/fs/lockd/mon.c
> @@ -306,11 +306,9 @@ static struct nsm_handle *nsm_lookup_pri
> 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);
> }
>
>

Looks fine to me.

Acked-by: Trond Myklebust <trond.myklebust@primarydata.com>


--
Trond Myklebust

Linux NFS client maintainer, PrimaryData

trond.myklebust@primarydata.com


\
 
 \ /
  Last update: 2014-07-11 23:21    [W:0.601 / U:0.940 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site