Whamcloud - gitweb
LU-9019 mdt: use 64-bit timestamps for rename stats 12/25412/2
authorJames Simmons <uja.ornl@yahoo.com>
Sun, 12 Feb 2017 17:39:33 +0000 (12:39 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 23 Feb 2017 02:06:24 +0000 (02:06 +0000)
commit1f58cac8e4a7f5196ceab2a411bd11d152de27e4
tree64630112234c0a3089019de69a67c96097fb7198
parent6e67953c438a9b0e2667dc5407f8556d181ffaab
LU-9019 mdt: use 64-bit timestamps for rename stats

The rename stats interface contains timestamps that are
computed from timeval, which overflows in 2038 on 32-bit systems.

This changes the output to use a timespec64 type to avoid the
overflow. I also change the format to print the sub-second portion
as 9 digits (nanoseconds) for clarity, rather than printing six
digits without leading zeroes.

Change-Id: I3b395160d8f5c76553f20dc4ca1047ae2a3df2b6
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/25412
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_lproc.c