• Arnd Bergmann's avatar
    nfds: avoid gettimeofday for nfssvc_boot time · 256a89fa
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    256a89fa
nfs4proc.c 69.5 KB