]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: encode nfsv4 timestamps as 64-bit
authorArnd Bergmann <arnd@arndb.de>
Mon, 11 Nov 2019 20:16:27 +0000 (21:16 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:30 +0000 (10:54 -0500)
commit3e501eb62098c33958d1eafc46ba1c15c215893d
tree50ff28fa03fae6cb8627bb39fef5746603f6deff
parente892759868fdd3ddb74e3e7027d8158fdc8dbb00
nfs: encode nfsv4 timestamps as 64-bit

On 32-bit architectures, xdr_encode_nfstime4() needlessly
truncates timestamps to a 32-bit value in the range between
year 1902 and 2038.

Change it to use 'struct timespec64' to allow the entire range
of values supported by the server.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4xdr.c