]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: use 64-bit timestamps for fscache
authorArnd Bergmann <arnd@arndb.de>
Tue, 19 Jun 2018 15:27:59 +0000 (17:27 +0200)
committerSteve French <stfrench@microsoft.com>
Tue, 7 Aug 2018 19:15:41 +0000 (14:15 -0500)
commitccdb8e246c8b8e81362538a6a464297f462d534e
treedd9a7e019b8dde669e5fc89abcfd8076155a3da8
parent58f9282e4c112aa3bd22a4576140e854c3750cd2
cifs: use 64-bit timestamps for fscache

In the fscache, we just need the timestamps as cookies to check for
changes, so we don't really care about the overflow, but it's better
to stop using the deprecated timespec so we don't have to go through
explicit conversion functions.

To avoid comparing uninitialized padding values that are copied
while assigning the timespec values, this rearranges the members of
cifs_fscache_inode_auxdata to avoid padding, and assigns them
individually.

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/cache.c
fs/cifs/fscache.c
fs/cifs/fscache.h