]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: remove timespec from xdr_encode_nfstime
authorArnd Bergmann <arnd@arndb.de>
Mon, 11 Nov 2019 20:16:26 +0000 (21:16 +0100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:30 +0000 (10:54 -0500)
commite892759868fdd3ddb74e3e7027d8158fdc8dbb00
treebddc5364936490a88429dde926c1b9e3eb5eeddd
parent138ff96fbde1be9de23f463e853b2f8e24d1bf5b
nfs: remove timespec from xdr_encode_nfstime

For NFSv2 and NFSv3, timestamps are stored using 32-bit entities
and overflow in y2038. For historic reasons we truncate the
64-bit timestamps by converting from a timespec64 to a timespec
first.

Remove this unnecessary conversion step and do the truncation
in the final functions that take a timestamp.

This is transparent to users, but avoids one of the last uses
of 'timespec' and lets us remove it later.

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