Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92776fd2 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: properly set snap follows for cap reconnect



Signed-off-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent b178cf43
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2882,7 +2882,7 @@ static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap,
	}
	}


	if (list_empty(&ci->i_cap_snaps)) {
	if (list_empty(&ci->i_cap_snaps)) {
		snap_follows = 0;
		snap_follows = ci->i_head_snapc ? ci->i_head_snapc->seq : 0;
	} else {
	} else {
		struct ceph_cap_snap *capsnap =
		struct ceph_cap_snap *capsnap =
			list_first_entry(&ci->i_cap_snaps,
			list_first_entry(&ci->i_cap_snaps,