summaryrefslogtreecommitdiffstats
path: root/fs/cifs/fscache.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-06-19 17:27:59 +0200
committerSteve French <stfrench@microsoft.com>2018-08-07 14:15:41 -0500
commitcbedeadf9c44a1a135293717d501882f2933a534 (patch)
treedd9a7e019b8dde669e5fc89abcfd8076155a3da8 /fs/cifs/fscache.h
parent95390201e7d8dd1eb764a3cbd50ae538a17fcd02 (diff)
downloadlinux-cbedeadf9c44a1a135293717d501882f2933a534.tar.gz
linux-cbedeadf9c44a1a135293717d501882f2933a534.tar.bz2
linux-cbedeadf9c44a1a135293717d501882f2933a534.zip
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>
Diffstat (limited to 'fs/cifs/fscache.h')
-rw-r--r--fs/cifs/fscache.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/cifs/fscache.h b/fs/cifs/fscache.h
index c7e3ac251e16..8c0862e41306 100644
--- a/fs/cifs/fscache.h
+++ b/fs/cifs/fscache.h
@@ -31,9 +31,11 @@
* Auxiliary data attached to CIFS inode within the cache
*/
struct cifs_fscache_inode_auxdata {
- struct timespec last_write_time;
- struct timespec last_change_time;
- u64 eof;
+ u64 last_write_time_sec;
+ u64 last_change_time_sec;
+ u32 last_write_time_nsec;
+ u32 last_change_time_nsec;
+ u64 eof;
};
/*