]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: pass a 64-bit guardtime to nfsd_setattr()
authorArnd Bergmann <arnd@arndb.de>
Sun, 3 Nov 2019 16:50:18 +0000 (17:50 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 19 Dec 2019 22:46:08 +0000 (17:46 -0500)
commita3cb3f26041142c477b7fa0338cb8b09ba288c83
tree606f1abcf8edee423f166800ecf43f8319cbe1a7
parentf4095761dacf09d779e5a24dded123c6c7714b83
nfsd: pass a 64-bit guardtime to nfsd_setattr()

Guardtime handling in nfs3 differs between 32-bit and 64-bit
architectures, and uses the deprecated time_t type.

Change it to using time64_t, which behaves the same way on
64-bit and 32-bit architectures, treating the number as an
unsigned 32-bit entity with a range of year 1970 to 2106
consistently, and avoiding the y2038 overflow.

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