projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b178cf4
)
ceph: properly set snap follows for cap reconnect
author
Yan, Zheng
<zyan@redhat.com>
Wed, 16 Aug 2017 13:42:39 +0000
(21:42 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:49 +0000
(19:56 +0200)
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/mds_client.c
b/fs/ceph/mds_client.c
index 86ff74424df4ae7633689bff0fb8a3ff27e185a1..e53437154cfe890c61efe1e59f3e5cdb13e7ef11 100644
(file)
--- a/
fs/ceph/mds_client.c
+++ b/
fs/ceph/mds_client.c
@@
-2882,7
+2882,7
@@
static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
}
if (list_empty(&ci->i_cap_snaps)) {
- snap_follows = 0;
+ snap_follows =
ci->i_head_snapc ? ci->i_head_snapc->seq :
0;
} else {
struct ceph_cap_snap *capsnap =
list_first_entry(&ci->i_cap_snaps,