diff options
Diffstat (limited to 'fs/ceph/cache.c')
-rw-r--r-- | fs/ceph/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/cache.c b/fs/ceph/cache.c index bb524c880b1e..362900e42424 100644 --- a/fs/ceph/cache.c +++ b/fs/ceph/cache.c | |||
@@ -130,7 +130,7 @@ static enum fscache_checkaux ceph_fscache_inode_check_aux( | |||
130 | 130 | ||
131 | memset(&aux, 0, sizeof(aux)); | 131 | memset(&aux, 0, sizeof(aux)); |
132 | aux.version = ci->i_version; | 132 | aux.version = ci->i_version; |
133 | aux.mtime = inode->i_mtime; | 133 | aux.mtime = timespec64_to_timespec(inode->i_mtime); |
134 | 134 | ||
135 | if (memcmp(data, &aux, sizeof(aux)) != 0) | 135 | if (memcmp(data, &aux, sizeof(aux)) != 0) |
136 | return FSCACHE_CHECKAUX_OBSOLETE; | 136 | return FSCACHE_CHECKAUX_OBSOLETE; |
@@ -163,7 +163,7 @@ void ceph_fscache_register_inode_cookie(struct inode *inode) | |||
163 | if (!ci->fscache) { | 163 | if (!ci->fscache) { |
164 | memset(&aux, 0, sizeof(aux)); | 164 | memset(&aux, 0, sizeof(aux)); |
165 | aux.version = ci->i_version; | 165 | aux.version = ci->i_version; |
166 | aux.mtime = inode->i_mtime; | 166 | aux.mtime = timespec64_to_timespec(inode->i_mtime); |
167 | ci->fscache = fscache_acquire_cookie(fsc->fscache, | 167 | ci->fscache = fscache_acquire_cookie(fsc->fscache, |
168 | &ceph_fscache_inode_object_def, | 168 | &ceph_fscache_inode_object_def, |
169 | &ci->i_vino, sizeof(ci->i_vino), | 169 | &ci->i_vino, sizeof(ci->i_vino), |