]> 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)
commitb5f32bb8cb17d279dafc01da93af47db1916ea18
treedd9a7e019b8dde669e5fc89abcfd8076155a3da8
parentb90cb21e2127b1b3dd8912dec5c8ce2f395a8e81
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