projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f7e7a
)
ceph: use i_version to check validity of fscache
author
Yan, Zheng
<zyan@redhat.com>
Fri, 20 May 2016 08:57:29 +0000
(16:57 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Wed, 1 Jun 2016 08:32:14 +0000
(10:32 +0200)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/cache.c
b/fs/ceph/cache.c
index 5b3f4828f214edbaa2b3368626e027832e325d30..238c55b01723d1eef74bd15d0f66895f6feac986 100644
(file)
--- a/
fs/ceph/cache.c
+++ b/
fs/ceph/cache.c
@@
-25,6
+25,7
@@
#include "cache.h"
struct ceph_aux_inode {
+ u64 version;
struct timespec mtime;
loff_t size;
};
@@
-98,6
+99,7
@@
static uint16_t ceph_fscache_inode_get_aux(const void *cookie_netfs_data,
const struct inode* inode = &ci->vfs_inode;
memset(&aux, 0, sizeof(aux));
+ aux.version = ci->i_version;
aux.mtime = inode->i_mtime;
aux.size = i_size_read(inode);
@@
-124,6
+126,7
@@
static enum fscache_checkaux ceph_fscache_inode_check_aux(
return FSCACHE_CHECKAUX_OBSOLETE;
memset(&aux, 0, sizeof(aux));
+ aux.version = ci->i_version;
aux.mtime = inode->i_mtime;
aux.size = i_size_read(inode);