OSDN Git Service

nfsd: print 64-bit timestamps in client_info_show
authorArnd Bergmann <arnd@arndb.de>
Thu, 31 Oct 2019 13:52:43 +0000 (14:52 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 19 Dec 2019 22:46:08 +0000 (17:46 -0500)
commite29f470396a7447764e73289fd63a4591a0b443b
treeda15bc1046b3375f52fb953dfe47c2ec26c97d66
parentb3f255ef6bffc18a28c3b6295357f2a3380c033f
nfsd: print 64-bit timestamps in client_info_show

The nii_time field gets truncated to 'time_t' on 32-bit architectures
before printing.

Remove the use of 'struct timespec' to product the correct output
beyond 2038.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h