nfds: avoid gettimeofday for nfssvc_boot time
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Oct 2017 10:04:11 +0000 (12:04 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 7 Nov 2017 21:44:00 +0000 (16:44 -0500)
commit256a89fa3deb6bb699b794e5bf00a72e2fe558b0
tree7fae8c6083d12226d1a4dd16857be83b750fabf1
parent818a34eb266449b1c89242596039a5e44c9be04c
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>
fs/nfsd/netns.h
fs/nfsd/nfs3xdr.c
fs/nfsd/nfs4proc.c
fs/nfsd/nfssvc.c