diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-19 12:04:11 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-07 22:44:00 +0100 |
commit | 256a89fa3deb6bb699b794e5bf00a72e2fe558b0 (patch) | |
tree | 7fae8c6083d12226d1a4dd16857be83b750fabf1 /fs/nfsd/netns.h | |
parent | fs, nfsd: convert nfs4_file.fi_ref from atomic_t to refcount_t (diff) | |
download | linux-256a89fa3deb6bb699b794e5bf00a72e2fe558b0.tar.xz linux-256a89fa3deb6bb699b794e5bf00a72e2fe558b0.zip |
nfds: avoid gettimeofday for nfssvc_boot time
do_gettimeofday() is deprecated and we should generally use time64_t
based functions instead.
In case of nfsd, all three users of nfssvc_boot only use the initial
time as a unique token, and are not affected by it overflowing, so they
are not affected by the y2038 overflow.
This converts the structure to timespec64 anyway and adds comments
to all uses, to document that we have thought about it and avoid
having to look at it again.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r-- | fs/nfsd/netns.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h index 3714231a9d0f..1c91391f4805 100644 --- a/fs/nfsd/netns.h +++ b/fs/nfsd/netns.h @@ -107,7 +107,7 @@ struct nfsd_net { bool lockd_up; /* Time of server startup */ - struct timeval nfssvc_boot; + struct timespec64 nfssvc_boot; /* * Max number of connections this nfsd container will allow. Defaults |