Skip to content

Commit 8bef923

Browse files
committed
ceph: correctly set 'follows' in flushsnap messages
The 'follows' should match the seq for the snap context for the given snap cap, which is the context under which we have been dirtying and writing data and metadata. The snapshot that _contains_ those updates thus _follows_ that context's seq #. Signed-off-by: Sage Weil <sage@newdream.net>
1 parent 467c525 commit 8bef923

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ceph/snap.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ void ceph_queue_cap_snap(struct ceph_inode_info *ci)
467467
INIT_LIST_HEAD(&capsnap->ci_item);
468468
INIT_LIST_HEAD(&capsnap->flushing_item);
469469

470-
capsnap->follows = snapc->seq - 1;
470+
capsnap->follows = snapc->seq;
471471
capsnap->issued = __ceph_caps_issued(ci, NULL);
472472
capsnap->dirty = dirty;
473473

0 commit comments

Comments
 (0)