OSDN Git Service

cifs: use timespec64 internally
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 Jun 2018 15:27:58 +0000 (17:27 +0200)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:15:41 +0000 (14:15 -0500)
commit95390201e7d8dd1eb764a3cbd50ae538a17fcd02
treedd5d0428de988c059ff84ef286c05c393dee1e0d
parentff361fda55fda55031252aca1f8afef735fe057c
cifs: use timespec64 internally

In cifs, the timestamps are stored in memory in the cifs_fattr structure,
which uses the deprecated 'timespec' structure. Now that the VFS code
has moved on to 'timespec64', the next step is to change over the fattr
as well.

This also makes 32-bit and 64-bit systems behave the same way, and
no longer overflow the 32-bit time_t in year 2038.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Paulo Alcantara <palcantara@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsencrypt.c
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/inode.c
fs/cifs/netmisc.c