staging/lustre: use 64-bit llite debugfs timestamps
authorArnd Bergmann <arnd@arndb.de>
Sun, 27 Sep 2015 20:45:20 +0000 (16:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:03:37 +0000 (04:03 +0200)
commit05406826aafb658d51ba7ac2fc6870992776ef6d
tree7fca50d31eeba8115f0f0249bcd37f08ec336689
parent0ac0478b65de1e5b8b62f608bdf1d8ba631acc4d
staging/lustre: use 64-bit llite debugfs timestamps

The llite debugfs 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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/lproc_llite.c