aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-09-14 18:45:44 -0400
committerSage Weil <sage@newdream.net>2010-09-14 18:45:44 -0400
commit8bef9239ee1a42eb37d3f83bacf6a75f019c028d (patch)
treeaca21838744fd483b5a2e374315c095b98193647 /fs/ceph
parent467c525109d5d542d7d416b0c11bdd54610fe2f4 (diff)
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>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/snap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/snap.c b/fs/ceph/snap.c
index 4868b9dcac5a..9e836afba341 100644
--- a/fs/ceph/snap.c
+++ b/fs/ceph/snap.c
@@ -467,7 +467,7 @@ void ceph_queue_cap_snap(struct ceph_inode_info *ci)
467 INIT_LIST_HEAD(&capsnap->ci_item); 467 INIT_LIST_HEAD(&capsnap->ci_item);
468 INIT_LIST_HEAD(&capsnap->flushing_item); 468 INIT_LIST_HEAD(&capsnap->flushing_item);
469 469
470 capsnap->follows = snapc->seq - 1; 470 capsnap->follows = snapc->seq;
471 capsnap->issued = __ceph_caps_issued(ci, NULL); 471 capsnap->issued = __ceph_caps_issued(ci, NULL);
472 capsnap->dirty = dirty; 472 capsnap->dirty = dirty;
473 473