diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-10-31 14:52:43 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-12-19 23:46:08 +0100 |
commit | e29f470396a7447764e73289fd63a4591a0b443b (patch) | |
tree | da15bc1046b3375f52fb953dfe47c2ec26c97d66 /fs/nfsd/state.h | |
parent | nfsd: use ktime_get_seconds() for timestamps (diff) | |
download | linux-e29f470396a7447764e73289fd63a4591a0b443b.tar.xz linux-e29f470396a7447764e73289fd63a4591a0b443b.zip |
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>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index ffc590de016b..6cf442033786 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -340,7 +340,7 @@ struct nfs4_client { /* NFSv4.1 client implementation id: */ struct xdr_netobj cl_nii_domain; struct xdr_netobj cl_nii_name; - struct timespec cl_nii_time; + struct timespec64 cl_nii_time; /* for v4.0 and v4.1 callbacks: */ struct nfs4_cb_conn cl_cb_conn; |