diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2010-12-22 15:39:39 -0500 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-12-22 21:37:57 -0500 |
commit | ff1becbf85bf4d4d4652915b7ab27db949585f6b (patch) | |
tree | a037c063caa2ea0dda28d2967bffd399dfdc7cc6 /fs/ocfs2/cluster/netdebug.c | |
parent | 3f9c14fab0a2e90af9995f261a123f59e0b41141 (diff) |
ocfs2/cluster: Use ktime instead of timeval in struct o2net_sock_container
Replace time trackers in struct o2net_sock_container from struct timeval to
union ktime.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/cluster/netdebug.c')
-rw-r--r-- | fs/ocfs2/cluster/netdebug.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/fs/ocfs2/cluster/netdebug.c b/fs/ocfs2/cluster/netdebug.c index 2b986aa82299..536a93d13a06 100644 --- a/fs/ocfs2/cluster/netdebug.c +++ b/fs/ocfs2/cluster/netdebug.c | |||
@@ -280,8 +280,6 @@ static void *sc_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
280 | return sc; /* unused, just needs to be null when done */ | 280 | return sc; /* unused, just needs to be null when done */ |
281 | } | 281 | } |
282 | 282 | ||
283 | #define TV_SEC_USEC(TV) TV.tv_sec, (long)TV.tv_usec | ||
284 | |||
285 | static int sc_seq_show(struct seq_file *seq, void *v) | 283 | static int sc_seq_show(struct seq_file *seq, void *v) |
286 | { | 284 | { |
287 | struct o2net_sock_container *sc, *dummy_sc = seq->private; | 285 | struct o2net_sock_container *sc, *dummy_sc = seq->private; |
@@ -313,13 +311,13 @@ static int sc_seq_show(struct seq_file *seq, void *v) | |||
313 | " remote node: %s\n" | 311 | " remote node: %s\n" |
314 | " page off: %zu\n" | 312 | " page off: %zu\n" |
315 | " handshake ok: %u\n" | 313 | " handshake ok: %u\n" |
316 | " timer: %lu.%ld\n" | 314 | " timer: %lld usecs\n" |
317 | " data ready: %lu.%ld\n" | 315 | " data ready: %lld usecs\n" |
318 | " advance start: %lu.%ld\n" | 316 | " advance start: %lld usecs\n" |
319 | " advance stop: %lu.%ld\n" | 317 | " advance stop: %lld usecs\n" |
320 | " func start: %lu.%ld\n" | 318 | " func start: %lld usecs\n" |
321 | " func stop: %lu.%ld\n" | 319 | " func stop: %lld usecs\n" |
322 | " func key: %u\n" | 320 | " func key: 0x%08x\n" |
323 | " func type: %u\n", | 321 | " func type: %u\n", |
324 | sc, | 322 | sc, |
325 | atomic_read(&sc->sc_kref.refcount), | 323 | atomic_read(&sc->sc_kref.refcount), |
@@ -328,12 +326,12 @@ static int sc_seq_show(struct seq_file *seq, void *v) | |||
328 | sc->sc_node->nd_name, | 326 | sc->sc_node->nd_name, |
329 | sc->sc_page_off, | 327 | sc->sc_page_off, |
330 | sc->sc_handshake_ok, | 328 | sc->sc_handshake_ok, |
331 | TV_SEC_USEC(sc->sc_tv_timer), | 329 | (long long)ktime_to_us(sc->sc_tv_timer), |
332 | TV_SEC_USEC(sc->sc_tv_data_ready), | 330 | (long long)ktime_to_us(sc->sc_tv_data_ready), |
333 | TV_SEC_USEC(sc->sc_tv_advance_start), | 331 | (long long)ktime_to_us(sc->sc_tv_advance_start), |
334 | TV_SEC_USEC(sc->sc_tv_advance_stop), | 332 | (long long)ktime_to_us(sc->sc_tv_advance_stop), |
335 | TV_SEC_USEC(sc->sc_tv_func_start), | 333 | (long long)ktime_to_us(sc->sc_tv_func_start), |
336 | TV_SEC_USEC(sc->sc_tv_func_stop), | 334 | (long long)ktime_to_us(sc->sc_tv_func_stop), |
337 | sc->sc_msg_key, | 335 | sc->sc_msg_key, |
338 | sc->sc_msg_type); | 336 | sc->sc_msg_type); |
339 | } | 337 | } |